Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Truncate long server names on login/register screen (#7702)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Raimist <[email protected]>
  • Loading branch information
t3chguy and aaronraimist authored Feb 4, 2022
1 parent 2e19f81 commit 78373e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions res/css/views/elements/_ServerPicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ limitations under the License.
color: $authpage-primary-color;
grid-column: 1;
grid-row: 2;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 8px;
}

.mx_ServerPicker_change {
Expand Down
4 changes: 3 additions & 1 deletion src/components/views/elements/ServerPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ const ServerPicker = ({ title, dialogTitle, serverConfig, onServerConfigChange }
return <div className="mx_ServerPicker">
<h3>{ title || _t("Homeserver") }</h3>
{ !disableCustomUrls ? <AccessibleButton className="mx_ServerPicker_help" onClick={onHelpClick} /> : null }
<span className="mx_ServerPicker_server">{ serverName }</span>
<span className="mx_ServerPicker_server" title={typeof serverName === "string" ? serverName : undefined}>
{ serverName }
</span>
{ editBtn }
{ desc }
</div>;
Expand Down

0 comments on commit 78373e8

Please sign in to comment.