mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 03:54:54 +08:00
change chat from a sidebar to a column (#3113)
* change chat from a sidebar to a column Using a 2-column layout prevents the chat scrollbar from overlapping the page scrollbar. Also, it no longer needs to calculate extra padding for elements. * remove unused Sidebar.tsx * fix css for chat column * re-center "Go to last message" button * main content column always uses maximum height * lint * re-hide scrollbars in mainContent on chromium * fix chat column width when input is over-full * chat is only fixed-width in desktop --------- Co-authored-by: janWilejan <>
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
|
||||
// The button that is displayed to scroll to the bottom of the chat.
|
||||
.toBottomWrap {
|
||||
align-self: center;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
bottom: 75px;
|
||||
@ -23,6 +23,7 @@
|
||||
}
|
||||
|
||||
.chatContainer {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--theme-color-components-chat-background);
|
||||
|
||||
Reference in New Issue
Block a user