Skip to content

Commit fb477d7

Browse files
committed
fix that switch covers input on first line
1 parent e6b6d61 commit fb477d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/packages/frontend/chat/chatroom.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ export function ChatRoom({
143143
}
144144

145145
function renderFilterRecent() {
146+
if (messages == null || messages.size <= 5) {
147+
return null;
148+
}
146149
return (
147150
<Tooltip title="Only show recent threads.">
148151
<Select
@@ -224,7 +227,7 @@ export function ChatRoom({
224227
}
225228

226229
function render_button_row() {
227-
if (messages == null) {
230+
if (messages == null || messages.size <= 5) {
228231
return null;
229232
}
230233
return (
@@ -235,9 +238,6 @@ export function ChatRoom({
235238
style={{
236239
margin: 0,
237240
width: "100%",
238-
...(messages.size >= 2
239-
? undefined
240-
: { visibility: "hidden", height: 0 }),
241241
}}
242242
/>
243243
{renderFilterRecent()}

src/packages/frontend/editors/markdown-input/multimode.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ export default function MultiMarkdownInput({
351351
color: COLORS.GRAY_M,
352352
...(mode == "editor" || hideHelp
353353
? {
354-
position: "absolute",
355-
right: 0,
354+
float: "right",
355+
position: "relative",
356356
zIndex: 1,
357357
}
358358
: { float: "right" }),

0 commit comments

Comments
 (0)