From 161cce7381f4d5f6fdbc880950645b8dcb256cef Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Fri, 16 Oct 2026 10:17:15 -0300 Subject: [PATCH 1/2] Show official logos in the media source menu Canva's brand guidelines require its official, unaltered icon wherever the app interacts with Canva; the menu showed a Tabler look-alike "C". Canva, Google Drive, Google Photos and Unsplash now use their logos from @thesvg/vue. Each Canva size fits on one line: name, size and default. --- package-lock.json | 13 ++++ package.json | 1 + .../posts/composer/MediaSourceMenu.vue | 75 +++++++++++-------- tests/Browser/ComposerCanvaMenuTest.php | 18 ++++- 4 files changed, 70 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8b3f40da9f..0d691da24a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "@inertiajs/vue3": "^3.8.0", "@tabler/icons-vue": "^3.49.0", "@tailwindcss/typography": "^0.5.19", + "@thesvg/vue": "^3.4.0", "@unovis/ts": "^1.7.0", "@unovis/vue": "^1.7.0", "@vueuse/core": "^12.8.2", @@ -1902,6 +1903,18 @@ "vue": "^2.7.0 || ^3.0.0" } }, + "node_modules/@thesvg/vue": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@thesvg/vue/-/vue-3.4.0.tgz", + "integrity": "sha512-qKf/O0XQp4KIGYaf7rTRf1rYhdV1gN5mafnuVbMGS3P698K+v6o9/t2JKqM3jMcH1WF9mmCaEiBQ7rZWbsDZHw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "vue": ">=3.3" + } + }, "node_modules/@tybys/wasm-util": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", diff --git a/package.json b/package.json index 99c3e31806..4e1e30edcc 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@inertiajs/vue3": "^3.8.0", "@tabler/icons-vue": "^3.49.0", "@tailwindcss/typography": "^0.5.19", + "@thesvg/vue": "^3.4.0", "@unovis/ts": "^1.7.0", "@unovis/vue": "^1.7.0", "@vueuse/core": "^12.8.2", diff --git a/resources/js/components/posts/composer/MediaSourceMenu.vue b/resources/js/components/posts/composer/MediaSourceMenu.vue index a5819f1d06..0acd2a0fbe 100644 --- a/resources/js/components/posts/composer/MediaSourceMenu.vue +++ b/resources/js/components/posts/composer/MediaSourceMenu.vue @@ -1,15 +1,19 @@