mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
web/roomview: don't allow room name to overflow
This commit is contained in:
parent
244443c7fd
commit
d573f2fa58
2 changed files with 7 additions and 7 deletions
|
@ -4,12 +4,13 @@ div.room-header {
|
|||
gap: .5rem;
|
||||
padding-left: .5rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
overflow: hidden;
|
||||
|
||||
> span.room-name {
|
||||
> div.room-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
> div.divider {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-wrap: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,10 +43,9 @@ const RoomViewHeader = ({ room }: RoomViewHeaderProps) => {
|
|||
onClick={use(LightboxContext)}
|
||||
alt=""
|
||||
/>
|
||||
<span className="room-name">
|
||||
<div className="room-name">
|
||||
{roomMeta.name ?? roomMeta.room_id}
|
||||
</span>
|
||||
<div className="divider"/>
|
||||
</div>
|
||||
<div className="right-buttons">
|
||||
<button
|
||||
data-target-panel="pinned-messages"
|
||||
|
|
Loading…
Add table
Reference in a new issue