fix(style): removing shadow

This commit is contained in:
cfngc4594 2025-03-09 18:58:48 +08:00
parent 849c8bc609
commit 28c10ad590
6 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ export default function CopyButton() {
<Button
variant="outline"
size="icon"
className="h-6 w-6 border-none px-1.5 py-0.5 disabled:opacity-100 hover:bg-muted"
className="h-6 w-6 border-none shadow-none px-1.5 py-0.5 disabled:opacity-100 hover:bg-muted"
onClick={handleCopy}
aria-label={copied ? "Copied" : "Copy to clipboard"}
disabled={copied}

View File

@ -24,7 +24,7 @@ export default function FormatButton() {
onClick={() => {
editor?.trigger("format", "editor.action.formatDocument", null);
}}
className="h-6 w-6 px-1.5 py-0.5 border-none hover:bg-muted"
className="h-6 w-6 px-1.5 py-0.5 border-none shadow-none hover:bg-muted"
>
<Paintbrush size={16} strokeWidth={2} aria-hidden="true" />
</Button>

View File

@ -29,7 +29,7 @@ export default function LanguageSelector() {
return (
<Select value={language} onValueChange={handleValueChange}>
<SelectTrigger className="h-6 px-1.5 py-0.5 border-none focus:ring-0 hover:bg-muted [&>span]:flex [&>span]:items-center [&>span]:gap-2 [&>span_svg]:shrink-0 [&>span_svg]:text-muted-foreground/80">
<SelectTrigger className="h-6 px-1.5 py-0.5 border-none shadow-none focus:ring-0 hover:bg-muted [&>span]:flex [&>span]:items-center [&>span]:gap-2 [&>span_svg]:shrink-0 [&>span_svg]:text-muted-foreground/80">
<SelectValue placeholder="Select language" />
</SelectTrigger>
<SelectContent className="[&_*[role=option]>span>svg]:shrink-0 [&_*[role=option]>span>svg]:text-muted-foreground/80 [&_*[role=option]>span]:end-2 [&_*[role=option]>span]:start-auto [&_*[role=option]>span]:flex [&_*[role=option]>span]:items-center [&_*[role=option]>span]:gap-2 [&_*[role=option]]:pe-8 [&_*[role=option]]:ps-2">

View File

@ -24,7 +24,7 @@ export default function RedoButton() {
onClick={() => {
editor?.trigger("redo", "redo", null);
}}
className="h-6 w-6 px-1.5 py-0.5 border-none hover:bg-muted"
className="h-6 w-6 px-1.5 py-0.5 border-none shadow-none hover:bg-muted"
>
<Redo2 size={16} strokeWidth={2} aria-hidden="true" />
</Button>

View File

@ -47,7 +47,7 @@ export default function ResetButton({
}
}
}}
className="h-6 w-6 px-1.5 py-0.5 border-none hover:bg-muted"
className="h-6 w-6 px-1.5 py-0.5 border-none shadow-none hover:bg-muted"
>
<RotateCcw size={16} strokeWidth={2} aria-hidden="true" />
</Button>

View File

@ -24,7 +24,7 @@ export default function UndoButton() {
onClick={() => {
editor?.trigger("undo", "undo", null);
}}
className="h-6 w-6 px-1.5 py-0.5 border-none hover:bg-muted"
className="h-6 w-6 px-1.5 py-0.5 border-none shadow-none hover:bg-muted"
>
<Undo2 size={16} strokeWidth={2} aria-hidden="true" />
</Button>