-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from Muhammed-Rahif/alpha
Full screen, characters count, status bar
- Loading branch information
Showing
9 changed files
with
104 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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