diff --git a/external/lang b/external/lang index ce5e32d444a35a691ac6b0abfbc722945e7cdf46..1d2b4d0147ef4bd0613c44c702233f7af888d6c0 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit ce5e32d444a35a691ac6b0abfbc722945e7cdf46 +Subproject commit 1d2b4d0147ef4bd0613c44c702233f7af888d6c0 diff --git a/src/components/common/messaging/MessageBox.tsx b/src/components/common/messaging/MessageBox.tsx index e3a11e28c5016bd5cc4746175caa483edfa0c170..065203bc4655e8322e25e83c43eff5f19962d278 100644 --- a/src/components/common/messaging/MessageBox.tsx +++ b/src/components/common/messaging/MessageBox.tsx @@ -129,11 +129,11 @@ export default function MessageBox({ channel }: Props) { <Base> <Blocked> <Action> - <PermissionTooltip - permission="SendMessages" - placement="top"> - <ShieldX size={22} /> - </PermissionTooltip> + <PermissionTooltip + permission="SendMessages" + placement="top"> + <ShieldX size={22} /> + </PermissionTooltip> </Action> <div className="text"> <Text id="app.main.channel.misc.no_sending" /> diff --git a/src/components/ui/ColourSwatches.tsx b/src/components/ui/ColourSwatches.tsx index 62df25157c19eb4f4ab19e28d9eb028e2668883f..a081c5666b118c3d56fe00f60b42d0a75dd9b202 100644 --- a/src/components/ui/ColourSwatches.tsx +++ b/src/components/ui/ColourSwatches.tsx @@ -117,7 +117,7 @@ export default function ColourSwatches({ value, onChange }: Props) { type="small" key={i} onClick={() => onChange(swatch)}> - {swatch === value && <Check size={18} />} + {swatch === value && <Check size={22} />} </Swatch> ))} </div> diff --git a/src/pages/settings/Settings.module.scss b/src/pages/settings/Settings.module.scss index a28237e09407eb59fbde0c2e301fe113b5a27cf7..6a8b310854969c4502aab8638c3c26a0a15f0752 100644 --- a/src/pages/settings/Settings.module.scss +++ b/src/pages/settings/Settings.module.scss @@ -75,6 +75,7 @@ .container { width: 218px; padding: 60px 8px; + height: fit-content; } .divider { diff --git a/src/pages/settings/panes/Panes.module.scss b/src/pages/settings/panes/Panes.module.scss index 0ff9cce6d057624eac490ebc65d1ea9f6d6943e3..c7d38ef9d42563b74db335ea62763a0d228e10af 100644 --- a/src/pages/settings/panes/Panes.module.scss +++ b/src/pages/settings/panes/Panes.module.scss @@ -69,6 +69,10 @@ font-weight: 600; color: var(--foreground); text-transform: uppercase; + + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; } a { @@ -329,6 +333,26 @@ .name { font-weight: 600; + border-bottom: 2px solid transparent; + } + + input { + background: transparent; + border: 0; + font-family: inherit; + font-size: 1rem; + padding: 0; + outline: 0; + border-radius: 0; + color: inherit; + + &:focus { + border-bottom: 2px solid var(--accent); + } + + &[data-active="true"] { + border-bottom: 2px solid inherit; + } } .icon { @@ -361,6 +385,7 @@ .name { text-transform: capitalize; + text-overflow: ellipsis; } .time { diff --git a/src/pages/settings/panes/Sessions.tsx b/src/pages/settings/panes/Sessions.tsx index e543da14d4713611e84da557d384a0f4a0ea2a35..a64b16ea3fb427d76c52ef871b869616c524407d 100644 --- a/src/pages/settings/panes/Sessions.tsx +++ b/src/pages/settings/panes/Sessions.tsx @@ -133,9 +133,7 @@ export function Sessions() { <div>{getSystemIcon(session)}</div> </div> <div className={styles.info}> - <span className={styles.name}> - {session.friendly_name} - </span> + <input type="text" className={styles.name} value={session.friendly_name} autocomplete="off" /> <span className={styles.time}> <Text id="app.settings.pages.sessions.created"