mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 13:50:06 +03:00
Use vh instead of % to fix storybook rendering of chat container.
This commit is contained in:
parent
25d52c4e1a
commit
0574725be8
2 changed files with 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ export default function ChatContainer(props: Props) {
|
||||||
() => (
|
() => (
|
||||||
<>
|
<>
|
||||||
<Virtuoso
|
<Virtuoso
|
||||||
style={{ height: 'calc(100% - 110px)', width: 'auto' }}
|
style={{ height: 'calc(100vh - 170px)', width: 'auto' }}
|
||||||
ref={chatContainerRef}
|
ref={chatContainerRef}
|
||||||
initialTopMostItemIndex={messages.length - 1} // Force alignment to bottom
|
initialTopMostItemIndex={messages.length - 1} // Force alignment to bottom
|
||||||
data={messages}
|
data={messages}
|
||||||
|
|
|
@ -35,8 +35,8 @@ const AddMessagesChatExample = args => {
|
||||||
</button>
|
</button>
|
||||||
<ChatContainer
|
<ChatContainer
|
||||||
messages={chatMessages}
|
messages={chatMessages}
|
||||||
usernameToHighlight={null}
|
usernameToHighlight="testuser"
|
||||||
chatUserId={null}
|
chatUserId="testuser"
|
||||||
isModerator={false}
|
isModerator={false}
|
||||||
isMobile={false}
|
isMobile={false}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue