Skip to content

Commit

Permalink
mobile goes horizontal
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Oct 27, 2023
1 parent 851d4c8 commit 3e2158d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 9 additions & 0 deletions resources/css/bem/chat-conversation-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,13 @@
align-self: center;
}
}

&__layer {
.own-layer();

@media @mobile {
display: flex;
flex-direction: row;
}
}
}
4 changes: 0 additions & 4 deletions resources/css/utilities.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@
z-index: @z-index--nav-float !important;
}

.u-own-layer {
.own-layer();
}

.u-relative {
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/chat/conversation-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function renderChannels(type: SupportedChannelType) {
<span className='chat-conversation-list__header-icon' title={title}><i className={icons[type]} /></span>
</div>
{chunks.map((c, index) => (
<div key={index} className='u-own-layer'>
<div key={index} className='chat-conversation-list__layer'>
{c.map((channel) => <ConversationListItem key={channel.channelId} channel={channel} />)}
</div>
))}
Expand Down

0 comments on commit 3e2158d

Please sign in to comment.