Skip to content

Commit 2e38f81

Browse files
committed
fix: CSS bugs on high DPI
1 parent 37f3b01 commit 2e38f81

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/UI/components/single/Chat.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function Chat(props: Readonly<HTMLAttributes<HTMLDivElement>>) {
5252
return (
5353
<div
5454
className={cn(
55-
'p-5 flex flex-col overflow-auto overflow-x-hidden break-words overflow-y-scroll h-full relative',
55+
'p-8 flex flex-col overflow-auto overflow-x-hidden break-words overflow-y-scroll h-full relative',
5656
props.className,
5757
)}
5858
ref={ref}
@@ -198,9 +198,8 @@ export function MessageComponent(
198198
{type === 'roleplay' ?
199199
(
200200
<>
201-
<strong style={{ color: userColor(user) }}>
202-
203-
</strong>{' '}
201+
<span style={{ backgroundColor: userColor(user), width:".35em", height:".35em", verticalAlign:"middle" }} className='mr-1 align-center inline-block rounded-full m-auto'>
202+
</span>
204203
<Username
205204
user={user}
206205
colorless

src/UI/components/single/Chatbox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export default function ChatBox(props: Readonly<HTMLAttributes<HTMLDivElement>>)
159159
}, []);
160160

161161
return (
162-
<div className={cn(props.className, 'w-full m-2')}>
162+
<div className={cn(props.className, 'w-full m-2 mt-0')}>
163163
<form onSubmit={submit} ref={formRef} className="w-full">
164164
<SearchBox
165165
offset={searchBoxOffset}

0 commit comments

Comments
 (0)