mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
Fix: Fixed bugs in friends menu
This commit is contained in:
parent
b6724c6680
commit
341b4ddc5e
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
.title {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -19,6 +25,12 @@
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
margin-inline-end: 4px;
|
margin-inline-end: 4px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,9 @@ export default function Friends() {
|
||||||
<summary>
|
<summary>
|
||||||
<Overline className={styles.overline} type="subtle">
|
<Overline className={styles.overline} type="subtle">
|
||||||
<ChevronDown size={20} />
|
<ChevronDown size={20} />
|
||||||
<Text id={i18n} /> — { list.length }
|
<div className={styles.title}>
|
||||||
|
<Text id={i18n} /> — { list.length }
|
||||||
|
</div>
|
||||||
</Overline>
|
</Overline>
|
||||||
</summary>
|
</summary>
|
||||||
{ list.map(x => <Friend key={x._id} user={x} />) }
|
{ list.map(x => <Friend key={x._id} user={x} />) }
|
||||||
|
|
Loading…
Reference in a new issue