From 34bc2f444053662da9899865b0494efbcdecef06 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Tue, 17 Oct 2023 11:27:06 +0200 Subject: [PATCH] Style the "share QR" link Only available in supporting browsers. --- src/assets/css/getlink.scss | 26 ++++++++++++++++++++------ src/assets/icons/ic_share.svg | 2 +- src/assets/translations/en.json | 1 + src/components/CopyLink.vue | 3 ++- src/components/GetLink.vue | 8 ++++++-- 5 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/assets/css/getlink.scss b/src/assets/css/getlink.scss index 6c020e6..e923559 100644 --- a/src/assets/css/getlink.scss +++ b/src/assets/css/getlink.scss @@ -96,12 +96,26 @@ } .getlink-share { - position: absolute; - right: 20px; - bottom: 24px; - width: 24px; - height: 17px; - object-fit: contain; + color: #161616; + text-align: center; + font-family: "Inter"; + font-size: 11.541px; + font-style: normal; + font-weight: 700; + line-height: 140%; /* 16.158px */ + letter-spacing: 0.34px; + text-transform: uppercase; + color: black; + display: flex; + align-items: center; + justify-content: center; + .v-image { + flex: 0 0 14px; + width: 14px; + height: 10px; + object-fit: contain; + margin-left: 4px; + } } .getlink-buttons { diff --git a/src/assets/icons/ic_share.svg b/src/assets/icons/ic_share.svg index f0e38d5..1ef4e66 100644 --- a/src/assets/icons/ic_share.svg +++ b/src/assets/icons/ic_share.svg @@ -1,3 +1,3 @@ - + diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index a6ceb20..84f9216 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -197,6 +197,7 @@ "scan_title": "Scan this code to start a direct chat", "continue": "Continue", "different_link": "Get a different link", + "share_qr": "Share QR", "qr_image_copied": "Image copied to clipboard" }, "profile": { diff --git a/src/components/CopyLink.vue b/src/components/CopyLink.vue index 8cd7f34..8da2871 100644 --- a/src/components/CopyLink.vue +++ b/src/components/CopyLink.vue @@ -17,6 +17,7 @@ class="qr" id="room-qr" > + @@ -72,7 +73,7 @@ export default { computed: { popupTitle() { return this.$t(this.i18nQrPopupTitleKey); - } + }, }, methods: { copyRoomLink() { diff --git a/src/components/GetLink.vue b/src/components/GetLink.vue index aebf792..cb08762 100644 --- a/src/components/GetLink.vue +++ b/src/components/GetLink.vue @@ -30,8 +30,12 @@ - +