From 1c25f6ee69bd71eed82af7020006d0e27537a967 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Fri, 23 Apr 2021 11:55:56 +0000 Subject: [PATCH] feat: open file option on share --- frontend/src/css/_share.css | 9 +++++++++ frontend/src/i18n/en.json | 3 ++- frontend/src/views/Share.vue | 20 +++++++++++++++++--- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/frontend/src/css/_share.css b/frontend/src/css/_share.css index 6d1c2296..eb8aacb7 100644 --- a/frontend/src/css/_share.css +++ b/frontend/src/css/_share.css @@ -43,6 +43,15 @@ word-break: break-all; } +.share__box__element .button { + display: inline-block; +} + +.share__box__element .button i { + display: block; + margin-bottom: 4px; +} + .share__box__items { text-align: left; flex: 10 0 25em; diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index d755020c..7bced4cd 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -33,7 +33,8 @@ "switchView": "Switch view", "toggleSidebar": "Toggle sidebar", "update": "Update", - "upload": "Upload" + "upload": "Upload", + "openFile": "Open file" }, "download": { "downloadFile": "Download File", diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue index 790bf64d..e44b2839 100644 --- a/frontend/src/views/Share.vue +++ b/frontend/src/views/Share.vue @@ -85,9 +85,23 @@ {{ $t("prompts.size") }}: {{ humanSize }}
- {{ - $t("buttons.download") - }} + +
+ file_download{{ $t("buttons.download") }} +
+
+ +
+ open_in_new{{ $t("buttons.openFile") }} +
+