The next-generation file converter. Open source, fully local* and free forever.
fix: chromium/webkit card fix, tooltip warning
Maya98e91337db94
diff --git a/messages/uwu.json b/messages/uwu.jsonindex 0c1767e..f7750f9 100644--- a/messages/uwu.json+++ b/messages/uwu.json@@ -177,7 +177,7 @@"navbar": {"upload": "Upwoad","convert": "Conwewt",- "settings": "Settings",+ "settings": "Settings","about": "About","toggle_theme": "Toggwe theme"},diff --git a/src/lib/components/visual/Tooltip.svelte b/src/lib/components/visual/Tooltip.svelteindex fe00426..764e7e9 100644--- a/src/lib/components/visual/Tooltip.svelte+++ b/src/lib/components/visual/Tooltip.svelte@@ -55,7 +55,7 @@}</script>-<div+<spanbind:this={triggerElement}class="relative inline-block {className}"onmouseenter={show}@@ -67,10 +67,10 @@role="tooltip">{@render children()}-</div>+</span>{#if showTooltip}- <div+ <spanclass="tooltip tooltip-{position}"style="left: {tooltipPosition.x}px; top: {tooltipPosition.y}px;"transition:fade={{@@ -78,7 +78,7 @@}}>{text}- </div>+ </span>{/if}<style>diff --git a/src/routes/+page.svelte b/src/routes/+page.svelteindex 8e51015..c8e9afa 100644--- a/src/routes/+page.svelte+++ b/src/routes/+page.svelte@@ -78,16 +78,35 @@// svelte-ignore state_referenced_locallylet showBlur = $state(Array(Object.keys(status).length).fill(false));- const checkScrollable = (index: number) => {- const container = scrollContainers[index];- if (!container) return;- showBlur[index] = container.scrollHeight > container.clientHeight;- };-onMount(() => {+ const isFirefox = /firefox/i.test(navigator.userAgent);+const handleResize = () => {- for (let i = 0; i < scrollContainers.length; i++)- checkScrollable(i);+ for (let i = 0; i < scrollContainers.length; i++) {+ // show bottom blur if scrollable+ const container = scrollContainers[i];+ if (!container) return;+ showBlur[i] = container.scrollHeight > container.clientHeight;++ // if not on firefox, add ml-2 to card content if scrollable+ // doing this because i can't figure out how to make the scrollbar *not* take up DOM space (shifting the contents to the left)+ if (!isFirefox && scrollContainers[i]) {+ const card = scrollContainers[i].closest(+ ".file-category-card",+ );+ const cardContent = card?.querySelector(+ ".file-category-card-content",+ );+ if (cardContent) {+ const hasML2 = cardContent.classList.contains("ml-2");+ if (showBlur[i] && !hasML2) {+ cardContent.classList.add("ml-2");+ } else if (!showBlur[i] && hasML2) {+ cardContent.classList.remove("ml-2");+ }+ }+ }+ }};handleResize();