fix(whiteboard): dev warnings

This commit is contained in:
Peng Xiao
2022-11-10 17:25:26 +08:00
committed by Tienson Qin
parent d94e6490d4
commit 2e4947a4f4
2 changed files with 3 additions and 4 deletions

View File

@@ -35,9 +35,7 @@ export function ColorInput({
return (
<Popover.Root>
<Popover.Trigger>
<button className="tl-color-drip mx-1">{renderColor(color)}</button>
</Popover.Trigger>
<Popover.Trigger className="tl-color-drip mx-1">{renderColor(color)}</Popover.Trigger>
<Popover.Content
className="tl-popover-content"
@@ -48,6 +46,7 @@ export function ColorInput({
<div className={'tl-color-palette'}>
{Object.values(Color).map(value => (
<button
key={value}
className={`tl-color-drip m-1${value === color ? ' active' : ''}`}
onClick={() => setColor(value)}
>

View File

@@ -235,7 +235,7 @@ html[data-theme='light'] {
}
.tl-statusbar {
@apply absolute flex items-center w-full bottom-0;
@apply fixed flex items-center w-full bottom-0;
font-family: monospace;
font-size: 10px;