Skip to content

Commit 354024b

Browse files
committed
fix snippet buttons
1 parent 11a6a32 commit 354024b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/CodeEditor.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{#each files as file (file.fileName)}
4545
<button
4646
class={[
47-
"bg-[#0d1117] py-1.5 px-3 flex-shrink-0 text-xs rounded-t inline-block",
47+
"bg-[#0d1117] py-1.5 px-3 flex-shrink-0 text-xs rounded-t inline-block transition-all duration-200 hover:opacity-100",
4848
filenameSelected !== file.fileName && "opacity-60",
4949
]}
5050
onclick={() => {
@@ -75,12 +75,12 @@
7575
target="_blank"
7676
rel="noreferrer"
7777
aria-label="Edit on Github"
78-
class="bg-[#0d1117] rounded border opacity-60 hover:opacity-90"
78+
class="bg-[#0d1117] rounded border opacity-60 hover:opacity-90 transition-all duration-200 p-1 flex items-center justify-center"
7979
>
8080
<span class="iconify ph--pencil size-4" aria-hidden="true"></span>
8181
</a>
8282
<button
83-
class="px-1.5 bg-[#0d1117] py-1 rounded border opacity-60 hover:opacity-90"
83+
class="bg-[#0d1117] rounded border opacity-60 hover:opacity-90 transition-all duration-200 p-1 flex items-center justify-center"
8484
title="Copy to clipboard"
8585
aria-label="Copy to clipboard"
8686
onclick={copySnippet}

0 commit comments

Comments
 (0)