- Name
- Size
+ Name
+ Size
{#each $nav.children as child, index (child.path)}
@@ -25,6 +27,7 @@ export let hide_branding = false
href={"/d"+fs_encode_path(child.path)}
on:click|preventDefault={e => dispatch("node_click", {index: index, original: e})}
on:contextmenu={e => dispatch("node_context", {index: index, original: e})}
+ animate:flip={{duration: 500}}
class="node"
class:node_selected={child.fm_selected}
class:hidden={child.name.startsWith(".") && !show_hidden}
@@ -53,7 +56,7 @@ export let hide_branding = false
share
{/if}
- {#if child.properties !== undefined && child.properties.branding_enabled !== undefined && !hide_branding}
+ {#if child.properties !== undefined && child.properties.branding_enabled === "true" && !hide_branding}
dispatch("node_branding", {index: index, original: e})}>
palette
@@ -78,7 +81,7 @@ export let hide_branding = false
border-radius: 8px;
max-width: 99%;
- width: 1000px;
+ width: 1200px;
}
.directory > * {
display: table-row;
@@ -120,7 +123,7 @@ td {
word-break: break-all;
}
.node_size {
- min-width: 50px;
+ min-width: 5em;
white-space: nowrap;
}
.icons_wrap {
diff --git a/svelte/src/admin_panel/SortButton.svelte b/svelte/src/layout/SortButton.svelte
similarity index 78%
rename from svelte/src/admin_panel/SortButton.svelte
rename to svelte/src/layout/SortButton.svelte
index ca821ce..31194cf 100644
--- a/svelte/src/admin_panel/SortButton.svelte
+++ b/svelte/src/layout/SortButton.svelte
@@ -1,17 +1,13 @@
-
sort_func(field)}>
{#if active_field === field}
- {#if asc}
- ↓
- {:else}
- ↑
- {/if}
+ {#if asc}↓{:else}↑{/if}
{/if}
diff --git a/svelte/src/user_home/BandwidthSharing.svelte b/svelte/src/user_home/BandwidthSharing.svelte
index 84f153c..aac2732 100644
--- a/svelte/src/user_home/BandwidthSharing.svelte
+++ b/svelte/src/user_home/BandwidthSharing.svelte
@@ -9,7 +9,7 @@ import SuccessMessage from "util/SuccessMessage.svelte";
let loading = false
let success_message
let hotlinking = window.user.hotlinking_enabled
-let transfer_cap = window.user.monthly_transfer_cap / 1e9
+let transfer_cap = window.user.monthly_transfer_cap / 1e12
let skip_viewer = window.user.skip_file_viewer
const update = async () => {
@@ -17,7 +17,7 @@ const update = async () => {
const form = new FormData()
form.append("hotlinking_enabled", hotlinking)
- form.append("transfer_cap", transfer_cap*1e9)
+ form.append("transfer_cap", transfer_cap*1e12)
form.append("skip_file_viewer", skip_viewer)
try {
@@ -31,7 +31,7 @@ const update = async () => {
}
window.user.hotlinking_enabled = hotlinking
- window.user.monthly_transfer_cap = transfer_cap*1e9
+ window.user.monthly_transfer_cap = transfer_cap*1e12
success_message.set(true, "Sharing settings updated")
} catch (err) {
@@ -102,11 +102,12 @@ onMount(() => {
Bill shock limit
- Billshock limit in gigabytes per month (1 TB = 1000 GB). Set to 0 to disable.
+ Billshock limit in terabytes per month (1 TB = 1000 GB). Set to 0 to
+ disable.