Skip to content

Commit face9ae

Browse files
committed
dynamic app height based on operating system via Go's build constraint
1 parent 13798a2 commit face9ae

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frontend/src/components/pages/WrongDir.svelte

+9-9
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
<div class="rounded-lg wrongdir px-1 text-center">
6969
<div class="h-8" />
70-
<p class="mx-2 select-none">
70+
<p class="mx-2 select-none text-primary-200">
7171
i-ncript must run inside a directory named <span class={rootFolderClass}
7272
>{rootFolder}</span
7373
>
@@ -78,39 +78,39 @@
7878
activeClass="focus:none"
7979
>
8080
<AccordionItem>
81-
<span slot="header" class="select-none"
81+
<span slot="header" class="select-none text-gray-500"
8282
>why is this step necessary?</span
8383
>
84-
<p class="mb-2 text-gray-500 dark:text-gray-400">
84+
<p class="mb-2 text-gray-500">
8585
For organizational and security purposes, i-ncript can only run
8686
within a specified directory, in this case: <span
8787
class={rootFolderClass}>{rootFolder}</span
8888
>.
8989
</p>
90-
<p class="text-gray-500 dark:text-gray-400">
90+
<p class="text-gray-500">
9191
This will prevent unintentional encryption of unrelated files
9292
from other subdirectories, keep encrypted files organized within
9393
the apps directory, and allow the app and its contents to be
9494
easily transferred to another device.
9595
</p>
9696
</AccordionItem>
9797
<AccordionItem>
98-
<span slot="header" class="select-none"
98+
<span slot="header" class="select-none text-gray-500"
9999
>how do I create a directory?</span
100100
>
101-
<p class="mb-2 text-gray-500 dark:text-gray-400">
101+
<p class="mb-2 text-gray-500">
102102
As i-ncript is designed to be a portable application that
103103
operates within a removable storage device, it must be entirely
104104
self contained inside a single directory.
105105
</p>
106-
<p class="mb-2 text-gray-500 dark:text-gray-400">
106+
<p class="mb-2 text-gray-500">
107107
You can then create a directory named <span
108108
class={rootFolderClass}>{rootFolder}</span
109109
>, preferably inside a removable drive such as a USB, then close
110110
the app and move the executable inside there.
111111
</p>
112112
{#if rootFolderPath === ""}
113-
<p class="text-gray-500 dark:text-gray-400">
113+
<p class="text-gray-500">
114114
Otherwise, click the [Create Folder] button below which will
115115
generate the <span class={rootFolderClass}
116116
>{rootFolder}</span
@@ -126,7 +126,7 @@
126126
{:else}
127127
<div class="flex justify-center">
128128
<p
129-
class="text-primary-400 dark:text-primary-300 text-sm pl-2 leading-none !text-justify"
129+
class="text-primary-200 text-sm pl-2 leading-none !text-justify"
130130
>
131131
the <button
132132
class={`${rootFolderClass} hover:outline`}

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const refreshDirSize = "refreshDirSize"
5252

5353
// DATA consts
5454
// Change to whatever name you want the root folder to be
55-
const rootFolder = "i-ncript"
55+
const rootFolder = "=i-ncript"
5656
const keyFileName = ".i-ncript.🔑"
5757
const _width = 220
5858

0 commit comments

Comments
 (0)