@axium/storage 0.6.10 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Add.svelte
CHANGED
package/lib/Sidebar.svelte
CHANGED
package/lib/SidebarItem.svelte
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<SidebarItem bind:item={children[i]} bind:items={children} />
|
|
88
88
|
{/each}
|
|
89
89
|
{:catch error}
|
|
90
|
-
<i
|
|
90
|
+
<i class="error-text">{error.message}</i>
|
|
91
91
|
{/await}
|
|
92
92
|
</div>
|
|
93
93
|
</details>
|
|
@@ -166,14 +166,13 @@
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.StorageSidebarItem:hover {
|
|
169
|
-
background:
|
|
169
|
+
background: var(--bg-strong);
|
|
170
170
|
cursor: pointer;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.selected {
|
|
174
174
|
border: 1px solid #555;
|
|
175
|
-
background:
|
|
176
|
-
color: #fff;
|
|
175
|
+
background: var(--bg-strong);
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
details > div {
|
|
@@ -182,7 +181,7 @@
|
|
|
182
181
|
|
|
183
182
|
div.action:hover {
|
|
184
183
|
cursor: pointer;
|
|
185
|
-
background-color:
|
|
184
|
+
background-color: var(--bg-accent);
|
|
186
185
|
border-radius: 0.25em;
|
|
187
186
|
}
|
|
188
187
|
</style>
|
package/package.json
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
<Icon i="trash-can-undo" /> Restore
|
|
26
26
|
</button>
|
|
27
27
|
{:else if item.type == 'inode/directory'}
|
|
28
|
+
<a href="/files{item.parentId ? '/' + item.parentId : ''}">
|
|
29
|
+
<button class="icon-text">
|
|
30
|
+
<Icon i="folder-arrow-up" /> Back
|
|
31
|
+
</button>
|
|
32
|
+
</a>
|
|
28
33
|
<StorageList appMode bind:items />
|
|
29
34
|
<StorageAdd parentId={item.id} onadd={item => items.push(item)} />
|
|
30
35
|
{:else}
|
package/styles/list.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.list-header {
|
|
8
8
|
font-weight: bold;
|
|
9
|
-
border-bottom: 1.5px solid
|
|
9
|
+
border-bottom: 1.5px solid var(--fg-accent);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.list-item-container {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.list-item:not(.list-header, :first-child) {
|
|
28
|
-
border-top: 1px solid
|
|
28
|
+
border-top: 1px solid var(--fg-accent);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.list-item:not(.list-header):hover {
|