Skip to content

Commit 8fec4bd

Browse files
committed
Fix ChatRoom message input height and autoresize
1 parent 5ea933f commit 8fec4bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

data-browser/src/views/ChatRoomPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { CommitDetail } from '../components/CommitDetail';
2121
import Markdown from '../components/datatypes/Markdown';
2222
import { Detail } from '../components/Detail';
2323
import { EditableTitle } from '../components/EditableTitle';
24+
import { NavBarSpacer } from '../components/NavBarSpacer';
2425
import { editURL } from '../helpers/navigation';
2526
import { ResourceInline } from './ResourceInline';
2627
import { ResourcePageProps } from './ResourcePage';
@@ -136,7 +137,7 @@ export function ChatRoomPage({ resource }: ResourcePageProps) {
136137
// in Firefox, scrollHeight only works if overflow is set to scroll
137138
const height = e.target.scrollHeight;
138139
e.target.style.overflow = overflowStyle;
139-
const rowHeight = 25;
140+
const rowHeight = 30;
140141
const trows = Math.ceil(height / rowHeight) - 1;
141142

142143
if (trows !== textAreaHight) {
@@ -180,6 +181,7 @@ export function ChatRoomPage({ resource }: ResourcePageProps) {
180181
Send
181182
</SendButton>
182183
</MessageForm>
184+
<NavBarSpacer baseMargin='2rem' position='bottom' />
183185
</FullPageWrapper>
184186
);
185187
}

0 commit comments

Comments
 (0)