-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(statusbar): move statusbar to a new component
status bar content animation
- Loading branch information
1 parent
53c826e
commit 629d145
Showing
7 changed files
with
81 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script lang="ts"> | ||
import Separator from '@/components/ui/separator/separator.svelte'; | ||
import { slide } from 'svelte/transition'; | ||
export let lineNo = 1; | ||
export let columnNo = 1; | ||
export let characterCount = 0; | ||
const inAnimation = { | ||
duration: 80 | ||
}; | ||
</script> | ||
|
||
<div | ||
class="sticky bottom-0 z-10 h-[30px] w-full | ||
bg-primary-foreground px-2" | ||
> | ||
<Separator /> | ||
<p | ||
class="flex h-full w-full items-center justify-start | ||
divide-x-2 text-sm [&>span]:px-4 first:[&>span]:pl-0 last:[&>span]:pr-0" | ||
> | ||
<span class="flex items-center justify-center"> | ||
Line: | ||
{#key lineNo} | ||
<span in:slide={inAnimation} class="ml-1 inline-block"> | ||
{lineNo} | ||
</span> | ||
{/key} | ||
, Column: | ||
{#key columnNo} | ||
<span in:slide={inAnimation} class="ml-1 inline-block"> | ||
{columnNo} | ||
</span> | ||
{/key} | ||
</span> | ||
|
||
<span class="flex items-center justify-center"> | ||
{#key characterCount} | ||
<span in:slide={inAnimation} class="mr-1 inline-block"> | ||
{characterCount} | ||
</span> | ||
{/key} | ||
{characterCount <= 1 ? 'Character' : 'Characters'} | ||
</span> | ||
|
||
<span class="ml-auto">100%</span> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters