From 3b2dc0b79dbed64cf2c49a8e6e09e548cd885b27 Mon Sep 17 00:00:00 2001 From: pheralb Date: Wed, 15 Jan 2025 11:40:10 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=8D=EF=B8=8F=20Update=20warning=20message?= =?UTF-8?q?=20+=20add=20message=20to=20copy=20svg=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/copySvg.svelte | 8 ++++++++ src/components/warning.svelte | 12 ++++++------ src/ui/popover/popover-content.svelte | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/copySvg.svelte b/src/components/copySvg.svelte index 4f3ecaa..526319d 100644 --- a/src/components/copySvg.svelte +++ b/src/components/copySvg.svelte @@ -309,5 +309,13 @@ +
+

+ Remember to request permission from the creators for the use of the SVG. Modification is not + allowed. +

+
diff --git a/src/components/warning.svelte b/src/components/warning.svelte index 8a7b9a3..dd3e224 100644 --- a/src/components/warning.svelte +++ b/src/components/warning.svelte @@ -5,28 +5,28 @@ import { cn } from '@/utils/cn'; let warning = false; - let warningName = 'svgl_warning_message'; + let warningName = 'svgl_warn_message'; const initialValue = browser ? window.localStorage.getItem(warningName) : true; {#if !warning && !initialValue}

All SVGs include links to the respective products or companies that own them. Please contact the owner directly if you intend to use their logo.Please contact the owner directly if you need to use their logo. - If you are the owner of an SVG and prefer it not to be displayed here, + If you are the owner of an SVG and would like it removed, create an issue on GitHub.

diff --git a/src/ui/popover/popover-content.svelte b/src/ui/popover/popover-content.svelte index d6e3f76..796ce56 100644 --- a/src/ui/popover/popover-content.svelte +++ b/src/ui/popover/popover-content.svelte @@ -21,7 +21,7 @@ {sideOffset} {...$$restProps} class={cn( - 'z-50 w-auto rounded-md border border-neutral-200 bg-white p-3 shadow-md outline-none dark:border-neutral-800 dark:bg-neutral-900', + 'z-50 w-auto max-w-96 rounded-md border border-neutral-200 bg-white p-3 shadow-md outline-none dark:border-neutral-800 dark:bg-neutral-900', className )} >