diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 5ca5953..e1d0383 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -314,7 +314,7 @@ h4, h5, h6 { line-height: 1; - margin: 0.5em 0; + margin: 0.3em 0; font-weight: lighter; font-family: 'Open Sans Light', sans-serif; } @@ -365,7 +365,7 @@ a { } p { - margin: 1em 0; + margin: 0.5em 0; } /* Forms*/ diff --git a/svelte/src/filesystem/FileStats.svelte b/svelte/src/filesystem/FileStats.svelte index 42a42a2..c6557c6 100644 --- a/svelte/src/filesystem/FileStats.svelte +++ b/svelte/src/filesystem/FileStats.svelte @@ -130,7 +130,7 @@ onDestroy(close_socket) line-height: 0.75em; margin-top: 0.5em; } -@media (max-width: 600px) { +@media (max-width: 700px) { .label { text-align: center; padding-left: 0; diff --git a/svelte/src/filesystem/Filesystem.svelte b/svelte/src/filesystem/Filesystem.svelte index 735e034..05e3740 100644 --- a/svelte/src/filesystem/Filesystem.svelte +++ b/svelte/src/filesystem/Filesystem.svelte @@ -55,7 +55,7 @@ const keydown = e => { if (edit_visible) { edit_visible = false } else { - edit_window.edit(state.base, true) + edit_window.edit(state.base, true, "file") } break; case "s": @@ -242,7 +242,10 @@ const update_css = path => document.documentElement.style = branding_from_path(p flex-direction: row; overflow: hidden; } -@media (max-width: 600px) { + +/* This max-width needs to be synced with the .toolbar max-width in +Toolbar.svelte and the .label max-width in FileStats.svelte */ +@media (max-width: 700px) { .viewer_area { flex-direction: column-reverse; } diff --git a/svelte/src/filesystem/Toolbar.svelte b/svelte/src/filesystem/Toolbar.svelte index 7c97abf..7011c2d 100644 --- a/svelte/src/filesystem/Toolbar.svelte +++ b/svelte/src/filesystem/Toolbar.svelte @@ -25,7 +25,7 @@ $: share_url = generate_share_url(state.path) let link_copied = false export const copy_link = () => { if (share_url === "") { - edit_window.edit(state.base, "share", true) + edit_window.edit(state.base, true, "share") return } @@ -119,7 +119,7 @@ let expand = e => { {#if state.base.id !== "me" && state.permissions.update === true} - -
+ - {#if tab === "file"} -- Delete this file or directory. If this is a directory then all - subfiles will be deleted as well. This action cannot be undone. -
-- When a file or directory is shared it can be accessed - through a unique link. You can get the URL with the 'Copy - link' button on the toolbar, or share the link with the - 'Share' button. If you share a directory all the files - within the directory are also accessible from the link. -
-+ Delete this file or directory. If this is a directory then all + subfiles will be deleted as well. This action cannot be undone. +
++ When a file or directory is shared it can be accessed through a + unique link. You can get the URL with the 'Copy link' button on + the toolbar, or share the link with the 'Share' button. If you + share a directory all the files within the directory are also + accessible from the link. +
++ If you have a website you can embed pixeldrain directories and files in your + own webpages with the code below. If you embed a directory then all + subdirectories and files will be accessible through the frame. Branding + options will also apply in the frame, but only when applied to this + directory. It will not inherit the style from parent directories. +
+ ++ Put this code in your website to embed the file or directory. +
+