mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
Fix: Small fixes to Sessions tab
This commit is contained in:
parent
9f85eda402
commit
b62eeb35e7
6 changed files with 34 additions and 10 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit ce5e32d444a35a691ac6b0abfbc722945e7cdf46
|
Subproject commit 1d2b4d0147ef4bd0613c44c702233f7af888d6c0
|
|
@ -129,11 +129,11 @@ export default function MessageBox({ channel }: Props) {
|
||||||
<Base>
|
<Base>
|
||||||
<Blocked>
|
<Blocked>
|
||||||
<Action>
|
<Action>
|
||||||
<PermissionTooltip
|
<PermissionTooltip
|
||||||
permission="SendMessages"
|
permission="SendMessages"
|
||||||
placement="top">
|
placement="top">
|
||||||
<ShieldX size={22} />
|
<ShieldX size={22} />
|
||||||
</PermissionTooltip>
|
</PermissionTooltip>
|
||||||
</Action>
|
</Action>
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<Text id="app.main.channel.misc.no_sending" />
|
<Text id="app.main.channel.misc.no_sending" />
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default function ColourSwatches({ value, onChange }: Props) {
|
||||||
type="small"
|
type="small"
|
||||||
key={i}
|
key={i}
|
||||||
onClick={() => onChange(swatch)}>
|
onClick={() => onChange(swatch)}>
|
||||||
{swatch === value && <Check size={18} />}
|
{swatch === value && <Check size={22} />}
|
||||||
</Swatch>
|
</Swatch>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
.container {
|
.container {
|
||||||
width: 218px;
|
width: 218px;
|
||||||
padding: 60px 8px;
|
padding: 60px 8px;
|
||||||
|
height: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
|
|
|
@ -69,6 +69,10 @@
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -329,6 +333,26 @@
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
font-weight: 600;
|
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 {
|
.icon {
|
||||||
|
@ -361,6 +385,7 @@
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
|
|
|
@ -133,9 +133,7 @@ export function Sessions() {
|
||||||
<div>{getSystemIcon(session)}</div>
|
<div>{getSystemIcon(session)}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.info}>
|
<div className={styles.info}>
|
||||||
<span className={styles.name}>
|
<input type="text" className={styles.name} value={session.friendly_name} autocomplete="off" />
|
||||||
{session.friendly_name}
|
|
||||||
</span>
|
|
||||||
<span className={styles.time}>
|
<span className={styles.time}>
|
||||||
<Text
|
<Text
|
||||||
id="app.settings.pages.sessions.created"
|
id="app.settings.pages.sessions.created"
|
||||||
|
|
Loading…
Reference in a new issue