From 2a4124d3b2fc99e1fc2b3ff56d2f0d3db6831061 Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Sat, 29 Aug 2026 09:12:37 +0200 Subject: [PATCH] feat: make edit button more visible --- .../components/icons/IconDetailOverlay.vue | 30 +++++++++ .../theme/components/icons/IconInfo.vue | 59 +++++++++++++++++ .../theme/components/icons/IconPreview.vue | 64 ------------------- docs/icons/[name].md | 5 +- 4 files changed, 93 insertions(+), 65 deletions(-) diff --git a/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue b/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue index 219e17488..1804388af 100644 --- a/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue +++ b/docs/.vitepress/theme/components/icons/IconDetailOverlay.vue @@ -56,6 +56,29 @@ function onClose() { const CloseIcon = createLucideIcon('Close', x); const Expand = createLucideIcon('Expand', expand); + +import getStudioLink from '../../utils/getStudioLink'; + +const brushSparkles = [ + ['path', { d: 'M10 3H8' }], + ['path', { d: 'm11 10 3 3' }], + ['path', { d: 'M20 15v4' }], + ['path', { d: 'M22 17h-4' }], + ['path', { d: 'M4 5v4' }], + ['path', { d: 'M6 7H2' }], + ['path', { d: 'M6.5 21A3.5 3.5 0 103 17.5a2.62 2.62 0 01-.708 1.792A1 1 0 003 21z' }], + ['path', { d: 'M9 2v2' }], + ['path', { d: 'M9.969 17.031 21.378 5.624a1 1 0 00-3.002-3.002L6.967 14.031' }], +]; + +const BrushSparklesIcon = createLucideIcon('BrushSparkels', brushSparkles); + +function openStudio() { + if (typeof window !== 'undefined' && icon.value) { + const link = getStudioLink(icon.value.name, icon.value.iconNode, 'icon-detail-overlay'); + window.open(link, '_blank'); + } +}