Skip to content

Commit

Permalink
fix(editor): editor title close button bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammed-Rahif committed Oct 15, 2024
1 parent 3f48184 commit b639bd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Semantic Release
on:
workflow_dispatch:
push:
branches:
- main
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/EditorTitle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { autoWidth } from 'svelte-input-auto-width';
import { tick } from 'svelte';
import { longpress } from '@/actions/longpress';
import type { EditorType } from '@/store/store';
import { activeTabId, type EditorType } from '@/store/store';
import * as Tooltip from '@/components/ui/tooltip';
import type { ButtonEventHandler } from 'bits-ui';
import CloseIcon from '@/components/icons/Close.svelte';
Expand Down Expand Up @@ -84,7 +84,7 @@
on:click={(e) => onEditorClose(e, editor.id)}
size="sm"
class="h-6 w-6 p-0"
variant="secondary"
variant={$activeTabId === editor.id ? 'secondary' : 'outline'}
>
<CloseIcon />
</Button>
Expand Down

0 comments on commit b639bd4

Please sign in to comment.