mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:13:39 +08:00
FIX: Overflowing chat content in main-chat-outlet grid (#20301)
Follow up to 82b4a53d29
On mobile, we just need to add `min-width: 0` to
`chat-live-pane` so it will not overflow the grid
defined in `main-chat-outlet.chat-view`.
The overflow could be triggered by:
1. Replying on mobile to a really long chat message
2. Uploading > 2 files
Both of these situations are fixed.
This commit is contained in:
parent
f96ef33856
commit
c767a38086
|
@ -1,4 +1,10 @@
|
|||
#main-chat-outlet.chat-view {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
grid-template-areas: "main threads";
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
&.has-side-panel-expanded {
|
||||
grid-template-columns: 3fr 2fr;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,10 @@ html.has-full-page-chat {
|
|||
padding: 0;
|
||||
|
||||
.main-chat-outlet {
|
||||
.chat-live-pane {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
&.has-side-panel-expanded {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-areas: "threads";
|
||||
|
|
Loading…
Reference in New Issue
Block a user