👀 Blocked user selection for the icon

This commit is contained in:
Mehdi Dara 2024-02-11 11:49:46 +03:30
parent 46ac870d81
commit caf6609bbd

View File

@ -88,7 +88,7 @@
<!-- Image --> <!-- Image -->
{#if wordmarkSvg == true} {#if wordmarkSvg == true}
<img <img
class="hidden dark:block mb-4 mt-2 h-10" class="hidden dark:block mb-4 mt-2 h-10 select-none"
src={typeof svgInfo.wordmark !== 'string' src={typeof svgInfo.wordmark !== 'string'
? svgInfo.wordmark?.dark || '' ? svgInfo.wordmark?.dark || ''
: svgInfo.wordmark || ''} : svgInfo.wordmark || ''}
@ -97,7 +97,7 @@
loading="lazy" loading="lazy"
/> />
<img <img
class="block dark:hidden mb-4 mt-2 h-10" class="block dark:hidden mb-4 mt-2 h-10 select-none"
src={typeof svgInfo.wordmark !== 'string' src={typeof svgInfo.wordmark !== 'string'
? svgInfo.wordmark?.light || '' ? svgInfo.wordmark?.light || ''
: svgInfo.wordmark || ''} : svgInfo.wordmark || ''}
@ -107,14 +107,14 @@
/> />
{:else} {:else}
<img <img
class={cn('hidden dark:block mb-4 mt-2 h-10')} class={cn('hidden dark:block mb-4 mt-2 h-10 select-none')}
src={typeof svgInfo.route !== 'string' ? svgInfo.route.dark : svgInfo.route} src={typeof svgInfo.route !== 'string' ? svgInfo.route.dark : svgInfo.route}
alt={svgInfo.title} alt={svgInfo.title}
title={svgInfo.title} title={svgInfo.title}
loading="lazy" loading="lazy"
/> />
<img <img
class={cn('block dark:hidden mb-4 mt-2 h-10')} class={cn('block dark:hidden mb-4 mt-2 h-10 select-none')}
src={typeof svgInfo.route !== 'string' ? svgInfo.route.light : svgInfo.route} src={typeof svgInfo.route !== 'string' ? svgInfo.route.light : svgInfo.route}
alt={svgInfo.title} alt={svgInfo.title}
title={svgInfo.title} title={svgInfo.title}