Skip to content

Commit dc45aa0

Browse files
committed
Fix ChatRoom message input height and autoresize
1 parent 9af304d commit dc45aa0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

data-browser/src/views/ChatRoomPage.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import Markdown from '../components/datatypes/Markdown';
2222
import { Detail } from '../components/Detail';
2323
import { EditableTitle } from '../components/EditableTitle';
2424
import { Guard } from '../components/Guard';
25+
import { NavBarSpacer } from '../components/NavBarSpacer';
2526
import { editURL } from '../helpers/navigation';
2627
import { ResourceInline } from './ResourceInline';
2728
import { ResourcePageProps } from './ResourcePage';
@@ -137,7 +138,7 @@ export function ChatRoomPage({ resource }: ResourcePageProps) {
137138
// in Firefox, scrollHeight only works if overflow is set to scroll
138139
const height = e.target.scrollHeight;
139140
e.target.style.overflow = overflowStyle;
140-
const rowHeight = 25;
141+
const rowHeight = 30;
141142
const trows = Math.ceil(height / rowHeight) - 1;
142143

143144
if (trows !== textAreaHight) {
@@ -182,6 +183,7 @@ export function ChatRoomPage({ resource }: ResourcePageProps) {
182183
Send
183184
</SendButton>
184185
</MessageForm>
186+
<NavBarSpacer baseMargin='2rem' position='bottom' />
185187
</Guard>
186188
</FullPageWrapper>
187189
);

0 commit comments

Comments
 (0)