Default to list view in filesystem
This commit is contained in:
@@ -243,7 +243,7 @@ const keydown = e => {
|
|||||||
hide();
|
hide();
|
||||||
break;
|
break;
|
||||||
case "i":
|
case "i":
|
||||||
details_window.toggle()
|
details.toggle()
|
||||||
break;
|
break;
|
||||||
case "s":
|
case "s":
|
||||||
download()
|
download()
|
||||||
@@ -363,7 +363,7 @@ const share = () => {
|
|||||||
<!-- This frame will load the download URL when a download button is pressed -->
|
<!-- This frame will load the download URL when a download button is pressed -->
|
||||||
<iframe bind:this={download_frame} title="Frame for downloading files" style="display: none; width: 1px; height: 1px;"></iframe>
|
<iframe bind:this={download_frame} title="Frame for downloading files" style="display: none; width: 1px; height: 1px;"></iframe>
|
||||||
|
|
||||||
<Modal bind:this={details} title="Details" width="600px" role="prompt">
|
<Modal bind:this={details} title="Details" width="800px" role="prompt">
|
||||||
<table style="min-width: 100%;">
|
<table style="min-width: 100%;">
|
||||||
<tr><td colspan="2"><h3>Node details</h3></td></tr>
|
<tr><td colspan="2"><h3>Node details</h3></td></tr>
|
||||||
<tr><td>Name</td><td>{state.base.name}</td></tr>
|
<tr><td>Name</td><td>{state.base.name}</td></tr>
|
||||||
@@ -374,6 +374,7 @@ const share = () => {
|
|||||||
{#if state.base.type === "file"}
|
{#if state.base.type === "file"}
|
||||||
<tr><td>File type</td><td>{state.base.file_type}</td></tr>
|
<tr><td>File type</td><td>{state.base.file_type}</td></tr>
|
||||||
<tr><td>File size</td><td>{formatDataVolume(state.base.file_size)}</td></tr>
|
<tr><td>File size</td><td>{formatDataVolume(state.base.file_size)}</td></tr>
|
||||||
|
<tr><td>SHA256 sum</td><td>{state.base.sha256_sum}</td></tr>
|
||||||
{/if}
|
{/if}
|
||||||
<tr><td colspan="2"><h3>Bucket details</h3></td></tr>
|
<tr><td colspan="2"><h3>Bucket details</h3></td></tr>
|
||||||
<tr><td>ID</td><td>{state.bucket.id}</td></tr>
|
<tr><td>ID</td><td>{state.bucket.id}</td></tr>
|
||||||
|
@@ -8,7 +8,7 @@ import GalleryView from './GalleryView.svelte'
|
|||||||
let dispatch = createEventDispatcher()
|
let dispatch = createEventDispatcher()
|
||||||
|
|
||||||
export let state
|
export let state
|
||||||
export let directory_view = "gallery"
|
export let directory_view = "list"
|
||||||
let uploader
|
let uploader
|
||||||
let mode = "viewing"
|
let mode = "viewing"
|
||||||
let creating_dir = false
|
let creating_dir = false
|
||||||
|
@@ -224,9 +224,10 @@ const paste = (e) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.file_upload {
|
.file_upload {
|
||||||
display: block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 1000px;
|
||||||
margin: 6px 0 0 0;
|
margin: 6px 0 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: var(--body_color);
|
background: var(--body_color);
|
||||||
|
Reference in New Issue
Block a user