diff --git a/svelte/src/file_viewer/viewers/Text.svelte b/svelte/src/file_viewer/viewers/Text.svelte
index 0d099fe..4a9cf86 100644
--- a/svelte/src/file_viewer/viewers/Text.svelte
+++ b/svelte/src/file_viewer/viewers/Text.svelte
@@ -42,7 +42,7 @@ let text_pre
const text = () => {
text_type = "text"
- if (file.size > 1 << 20) { // File larger than 1 MiB
+ if (file.size > 1 << 22) { // File larger than 4 MiB
text_pre.innerText = "File is too large to view online.\nPlease download and view it locally."
return
}
@@ -62,7 +62,7 @@ let prettyprint = false
const code = () => {
text_type = "code"
- if (file.size > 1 << 20) { // File larger than 1 MiB
+ if (file.size > 1 << 22) { // File larger than 4 MiB
code_pre.innerText = "File is too large to view online.\nPlease download and view it locally."
return
}
diff --git a/svelte/src/file_viewer/viewers/Video.svelte b/svelte/src/file_viewer/viewers/Video.svelte
index 1185069..cf29ee9 100644
--- a/svelte/src/file_viewer/viewers/Video.svelte
+++ b/svelte/src/file_viewer/viewers/Video.svelte
@@ -74,9 +74,9 @@ let download = () => { dispatch("download", {}) }
This is a video file on pixeldrain
- The online video player on pixeldrain has been disabled due to
- repeated abuse. You can still watch videos online by upgrading to
- Pro. Or download the video and watch it locally on your computer.
+ The online video player on pixeldrain has been disabled to prevent
+ abuse. You can still watch videos online by upgrading to Pro. Or
+ download the video and watch it locally on your computer.
upgrade Upgrade to Pro
@@ -126,6 +126,6 @@ let download = () => { dispatch("download", {}) }
text-align: left;
padding-left: 8px;
vertical-align: middle;
- max-width: 600px;
+ max-width: 550px;
}
diff --git a/svelte/src/user_home/Transactions.svelte b/svelte/src/user_home/Transactions.svelte
index b525dc1..7d42bd3 100644
--- a/svelte/src/user_home/Transactions.svelte
+++ b/svelte/src/user_home/Transactions.svelte
@@ -141,21 +141,19 @@ onMount(() => {
deposit has to be used up.
-
+ Deposit amount €
+
+
+ Pay with:
+
+
+
Open invoices
diff --git a/webcontroller/file_preview.go b/webcontroller/file_preview.go
index 3933c72..a4e4aa5 100644
--- a/webcontroller/file_preview.go
+++ b/webcontroller/file_preview.go
@@ -31,7 +31,7 @@ func (wc *WebController) serveFilePreview(w http.ResponseWriter, r *http.Request
if strings.HasPrefix(file.MimeType, "text") &&
(strings.HasSuffix(file.Name, ".md") || strings.HasSuffix(file.Name, ".markdown")) {
- if file.Size > 1e6 { // Prevent out of memory errors
+ if file.Size > 1<<22 { // Prevent out of memory errors
w.Write([]byte("File is too large to view online.\nPlease download and view it locally."))
return
}