diff --git a/res/static/script/paste.js b/res/static/script/paste.js index c31276c..68d51cc 100644 --- a/res/static/script/paste.js +++ b/res/static/script/paste.js @@ -5,6 +5,10 @@ function uploadText() { var text = $("#textarea").val(); + if(!text.endsWith("\n")){ + text += "\n"; + } + var blob = new Blob([text], {type: "text/plain"}); startFileUpload(blob); diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 7f6a9aa..bc109bf 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -13,13 +13,27 @@ font-family: 'Ubuntu'; font-style: normal; font-weight: 400; - src: local('Ubuntu Regular'), local('Ubuntu-Regular'), local('Ubuntu'), url(/res/misc/Ubuntu-R.ttf) format('truetype'); + font-display: auto; + src: + local('Ubuntu'), + local('Ubuntu Regular'), + local('Ubuntu, Regular'), + local('Ubuntu-Regular'), + url(/res/misc/Ubuntu-R.ttf) format('truetype'); } @font-face { font-family: 'Lato'; font-style: normal; font-weight: 100; - src: local('Lato Hairline'), local('Lato-Hairline'), url(/res/misc/Lato-Hairline.ttf) format('truetype'); + font-display: auto; + src: + local('Lato Thin'), + local('Lato, Thin'), + local('Lato-Thin'), + local('Lato Hairline'), + local('Lato, Hairline'), + local('Lato-Hairline'), + url(/res/misc/Lato-Hairline.ttf) format('truetype'); } /* Page rendering configuration */ diff --git a/res/template/404.html b/res/template/404.html index f1e59c1..a79ced3 100644 --- a/res/template/404.html +++ b/res/template/404.html @@ -2,6 +2,7 @@
{{template "meta_tags" "Not Found"}} + {{template "user_style" .}} diff --git a/res/template/500.html b/res/template/500.html index 8bcf266..65192fd 100644 --- a/res/template/500.html +++ b/res/template/500.html @@ -2,6 +2,7 @@ {{template "meta_tags" "Internal Server Error"}} + {{template "user_style" .}} diff --git a/res/template/account/file_manager.html b/res/template/account/file_manager.html index 477bf28..5848e4d 100644 --- a/res/template/account/file_manager.html +++ b/res/template/account/file_manager.html @@ -2,6 +2,7 @@ {{template "meta_tags" "File Manager"}} + {{template "user_style" .}} diff --git a/res/template/fragments/metatags.html b/res/template/fragments/meta_tags.html similarity index 96% rename from res/template/fragments/metatags.html rename to res/template/fragments/meta_tags.html index 6b06561..9b0ac15 100644 --- a/res/template/fragments/metatags.html +++ b/res/template/fragments/meta_tags.html @@ -2,7 +2,6 @@