Skip to content

Commit 6c779b5

Browse files
author
Krzysztof Kowalczyk
committed
fix tailwindcss warnings
1 parent 51b2919 commit 6c779b5

8 files changed

Lines changed: 14 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ dist/
1111
.DS_Store
1212
ailog.txt
1313
dist/gitkeep.txt
14+
tsconfig.tsbuildinfo

src/components/Find.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
</script>
275275

276276
{#snippet InsideInput()}
277-
<div class="absolute right-[0.25rem] top-[6px] flex">
277+
<div class="absolute right-1 top-1.5 flex">
278278
{#if counter.total}
279279
<div class="flex text-gray-300 ml-4 self-center whitespace-nowrap">
280280
{counter.current} of {counter.total}
@@ -322,7 +322,7 @@
322322
{/snippet}
323323

324324
<div
325-
class="selector-colors fixed top-[2px] left-1/2 -translate-x-1/2 z-20 px-1 py-1 bg-white text-sm max-w-4/5 shadow-lg border border-gray-300 dark:border-gray-700"
325+
class="selector-colors fixed top-0.5 left-1/2 -translate-x-1/2 z-20 px-1 py-1 bg-white text-sm max-w-4/5 shadow-lg border border-gray-300 dark:border-gray-700"
326326
use:trapfocus
327327
>
328328
<div class="flex flex-row">
@@ -361,10 +361,10 @@
361361
@reference "tailwindcss";
362362
363363
input {
364-
@apply bg-white px-2 py-1 border-1 border-gray-200 dark:border-gray-600 outline-1 outline-gray-200 dark:outline-gray-600;
364+
@apply bg-white px-2 py-1 border border-gray-200 dark:border-gray-600 outline-1 outline-gray-200 dark:outline-gray-600;
365365
}
366366
367367
button {
368-
@apply px-[6px] py-[2px] hover:bg-gray-200 dark:hover:bg-gray-500 dark:bg-gray-900 border-0;
368+
@apply px-1.5 py-0.5 hover:bg-gray-200 dark:hover:bg-gray-500 dark:bg-gray-900 border-0;
369369
}
370370
</style>

src/components/FunctionSelector.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<form
131131
onkeydown={onKeydown}
132132
tabindex="-1"
133-
class="selector absolute flex flex-col z-20 center-x-with-translate top-[2rem] max-h-[90vh] w-[32em] p-2"
133+
class="selector absolute flex flex-col z-20 center-x-with-translate top-8 max-h-[90vh] w-[32em] p-2"
134134
>
135135
<div>
136136
<div class="flex">
@@ -147,7 +147,7 @@
147147
bind:value={filter}
148148
class="py-1 px-2 bg-white w-full mb-2 rounded-xs relative"
149149
/>
150-
<div class="absolute right-[1rem] top-[2.6rem] italic text-gray-400">
150+
<div class="absolute right-4 top-[2.6rem] italic text-gray-400">
151151
{itemsCountMsg}
152152
</div>
153153
</div>
@@ -161,7 +161,7 @@
161161
{#snippet renderItem(item)}
162162
{@const hili = hilightText(item.name, hiliRegExp)}
163163
<button
164-
class="ml-[-6px] cursor-pointer hover:text-yellow-600"
164+
class="-ml-1.5 cursor-pointer hover:text-yellow-600"
165165
onclick={(ev) => {
166166
toggleStarred(item);
167167
ev.preventDefault();

src/components/LanguageSelector.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
listboxRef?.onkeydown(ev, filter === "");
5050
}}
5151
tabindex="-1"
52-
class="selector z-20 absolute center-x-with-translate top-[2rem] max-h-[94vh] flex flex-col p-2"
52+
class="selector z-20 absolute center-x-with-translate top-8 max-h-[94vh] flex flex-col p-2"
5353
>
54-
<input use:focus type="text" bind:value={filter} class="py-1 px-2 bg-white w-full min-w-[400px] mb-2 rounded-xs" />
54+
<input use:focus type="text" bind:value={filter} class="py-1 px-2 bg-white w-full min-w-100 mb-2 rounded-xs" />
5555
<ListBox bind:this={listboxRef} items={itemsFiltered} onclick={(item) => selectLanguage(item.token)}>
5656
{#snippet renderItem(item)}
5757
{@const hili = hilightText(item.name, hiliRegExp)}

src/components/ListBox2.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191
<!-- svelte-ignore a11y_click_events_have_key_events -->
192192
<div
193-
class="overflow-y-auto cursor-pointer flex flex-wrap gap-y-[2px] pb-4"
193+
class="overflow-y-auto cursor-pointer flex flex-wrap gap-y-0.5 pb-4"
194194
tabindex="-1"
195195
role="listbox"
196196
bind:this={listboxRef}

src/components/RenameNote.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
role="dialog"
6363
tabindex="0"
6464
{onkeydown}
65-
class="selector z-20 absolute center-x-with-translate top-[4rem] flex flex-col max-w-full p-3"
65+
class="selector z-20 absolute center-x-with-translate top-16 flex flex-col max-w-full p-3"
6666
>
6767
<div class="flex">
6868
<div class="text-lg font-semibold grow">

src/components/StatusBar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
{/if}
7373
</div>
7474
<div class="text-gray-400">&bull;</div>
75-
<div class="doc-size px-[6px]" title="Note Size: {docSize} bytes">
75+
<div class="doc-size px-1.5" title="Note Size: {docSize} bytes">
7676
{formatSize}
7777
</div>
7878

src/components/Toaster.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</script>
9797

9898
{#if len(toasts) > 0}
99-
<div class="toast-wrap fixed top-10 right-[19px] text-sm" {style}>
99+
<div class="toast-wrap fixed top-10 right-4.75 text-sm" {style}>
100100
{#each toasts as t}
101101
<div
102102
class="flex justify-between items-center mb-4 border rounded-md py-2 pl-4 pr-2 min-w-[14ch] {bgClass(t.type)}"

0 commit comments

Comments
 (0)