Skip to content

Commit 9da70a0

Browse files
committed
chore: replace string svg by a real file
fix: #5459 (comment) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 2006791 commit 9da70a0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

img/logo-telegram-app.svg

Lines changed: 3 additions & 0 deletions
Loading

src/Components/Request/SignerSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ import { generateOcsUrl } from '@nextcloud/router'
4343
import NcSelect from '@nextcloud/vue/components/NcSelect'
4444
4545
import svgSignal from '../../../img/logo-signal-app.svg?raw'
46+
import svgTelegram from '../../../img/logo-telegram-app.svg?raw'
4647
4748
const iconMap = {
4849
svgSignal,
4950
svgSms,
50-
// Workaround to rotate telegram icon. MDI does not provide a telegram icon.
51-
svgTelegram: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><g transform="rotate(-45, 12, 12)"><path d="M2,21L23,12L2,3V10L17,12L2,14V21Z" /></g></svg>',
51+
svgTelegram,
5252
svgWhatsapp,
5353
svgXmpp,
5454
}

src/Components/RightSidebar/RequestSignatureTab.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ import VisibleElements from '../Request/VisibleElements.vue'
118118
import Signers from '../Signers/Signers.vue'
119119
120120
import svgSignal from '../../../img/logo-signal-app.svg?raw'
121+
import svgTelegram from '../../../img/logo-telegram-app.svg?raw'
121122
import router from '../../router/router.js'
122123
import { useFilesStore } from '../../store/files.js'
123124
import { useSidebarStore } from '../../store/sidebar.js'
@@ -128,8 +129,7 @@ const iconMap = {
128129
svgEmail,
129130
svgSignal,
130131
svgSms,
131-
// Workaround to rotate telegram icon. MDI does not provide a telegram icon.
132-
svgTelegram: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><g transform="rotate(-45, 12, 12)"><path d="M2,21L23,12L2,3V10L17,12L2,14V21Z" /></g></svg>',
132+
svgTelegram,
133133
svgWhatsapp,
134134
svgXmpp,
135135
}

0 commit comments

Comments
 (0)