From c8b9e3bb75fcb0415ea6cc02e7a4d06c1cfebd39 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 19 Sep 2019 09:35:09 +0200 Subject: [PATCH 1/5] Fix scrolling issues --- res/static/style/layout.css | 13 ++--- res/template/fragments/page_wrap.html | 82 +++++++++++++-------------- 2 files changed, 47 insertions(+), 48 deletions(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index d7dd499..b3ff752 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -51,9 +51,7 @@ } /* Page rendering configuration */ -html, body { - overflow: hidden; -} + body{ background-color: #0d0d0d; /* Fallback */ background-color: var(--body_color); @@ -76,7 +74,8 @@ body{ } .button_toggle_navigation { - position: absolute; + position: fixed; + backface-visibility: hidden; z-index: 300; top: 0; left: 0; @@ -89,7 +88,8 @@ body{ box-shadow: 2px 2px 8px -3px var(--shadow_color); } .page_navigation { - position: absolute; + position: fixed; + backface-visibility: hidden; z-index: 100; width: 250px; height: 100%; @@ -107,9 +107,8 @@ body{ .page_body { position: absolute; z-index: 200; - top: 0; right: 0; - bottom: 0; + height: auto; left: 250px; min-width: 300px; display: inline-block; diff --git a/res/template/fragments/page_wrap.html b/res/template/fragments/page_wrap.html index 7202188..8d5272e 100644 --- a/res/template/fragments/page_wrap.html +++ b/res/template/fragments/page_wrap.html @@ -1,52 +1,52 @@ {{define "page_top"}} -
- - -
+ + + +
{{end}} {{define "page_bottom"}} -
- Pixeldrain is a product by Fornaxian Technologies | - Twitter: @Fornax96 - Reddit: /r/pixeldrain - Medium: Pixeldrain -
-
-
+
+ Pixeldrain is a product by Fornaxian Technologies | + Twitter: @Fornax96 + Reddit: /r/pixeldrain + Medium: Pixeldrain +
+
+ {{end}} From 574391defd33b13318e95acce4a810aa5d276d46 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 19 Sep 2019 09:36:35 +0200 Subject: [PATCH 2/5] Bump version number --- res/template/fragments/meta_tags.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/res/template/fragments/meta_tags.html b/res/template/fragments/meta_tags.html index 007876c..dec8411 100644 --- a/res/template/fragments/meta_tags.html +++ b/res/template/fragments/meta_tags.html @@ -1,16 +1,16 @@ {{define "meta_tags"}} {{.}} ~ PixelDrain - - - - - - - + + + + + + + +pixeldrain also supports previews for images, videos, audio, PDFs and much more." /> From 60819849e6ade5064645388fd4cab1ce3d7b194e Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 19 Sep 2019 09:40:07 +0200 Subject: [PATCH 3/5] Disable horizontal scrolling --- res/static/style/layout.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index b3ff752..0cd4dee 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -51,7 +51,9 @@ } /* Page rendering configuration */ - +html, body { + overflow-x: hidden; +} body{ background-color: #0d0d0d; /* Fallback */ background-color: var(--body_color); From a895751d3b512e1c3520aa15f0d4359ec2d4f1f3 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 19 Sep 2019 09:43:31 +0200 Subject: [PATCH 4/5] Fix width on small screens --- res/static/style/layout.css | 1 + res/template/fragments/meta_tags.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 0cd4dee..4f23163 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -127,6 +127,7 @@ body{ } .page_body { left: 0; + width: 100%; } } diff --git a/res/template/fragments/meta_tags.html b/res/template/fragments/meta_tags.html index dec8411..bdb98c2 100644 --- a/res/template/fragments/meta_tags.html +++ b/res/template/fragments/meta_tags.html @@ -2,7 +2,7 @@ {{.}} ~ PixelDrain - + From dce2ea02950a5d40fafa5fac8d9c8d15d6a12cd6 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Mon, 11 Nov 2019 12:00:18 +0100 Subject: [PATCH 5/5] Drop expiry time to 30 days --- res/template/about.html | 4 ++-- res/template/file_not_found.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/res/template/about.html b/res/template/about.html index ebbdaf2..0344e0c 100644 --- a/res/template/about.html +++ b/res/template/about.html @@ -13,14 +13,14 @@

For how long will my files be stored?

- Files will be removed if they have not been viewed for 60 days. + Files will be removed if they have not been viewed for 30 days. A view is counted when someone visits the file's download page (pixeldrain.com/u/somefile) or views the file through a list the file is included in (pixeldrain.com/l/somelist).

You cannot delete files yourself. Once a file has been uploaded - to pixeldrain it will stay there for at least 60 days. If you + to pixeldrain it will stay there for at least 30 days. If you accidentally upload something you shouldn't have, just don't share the link. The file will expire eventually. File links are not indexed or published anywhere. As long as you don't share it diff --git a/res/template/file_not_found.html b/res/template/file_not_found.html index d66b922..dc72fb3 100644 --- a/res/template/file_not_found.html +++ b/res/template/file_not_found.html @@ -14,7 +14,7 @@ reasons for this are:

    -
  • The file has not been viewed for 60 days and has expired
  • +
  • The file has not been viewed for 30 days and has expired
  • Something went wrong on the pixeldrain servers causing the file to be temporarily unavailable
  • The file violated copyright laws and has received a takedown request
  • The content was deemed illegal in some country and censorship was requested by a government organisation
  • @@ -45,7 +45,7 @@ reasons for this are:

      -
    • All files in this list have not been viewed for 60 days and have expired
    • +
    • All files in this list have not been viewed for 30 days and have expired
    • Something went wrong on the pixeldrain servers causing the list to be temporarily unavailable
    • The files in the list violated copyright laws and have received a takedown request
    • The files in the list were deemed illegal in some country and censorship was requested by a government organisation