fix styling

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-09-29 21:18:16 +02:00
parent 352eb9b987
commit 3f2699f7e0
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
<script lang="ts"> <script lang="ts">
import { Database, Key, Mail } from "@lucide/svelte"; import { Database, Key, Mail } from "@lucide/svelte";
import { cn } from "../utils"; import { cn } from "../utils";
import { onMount } from "svelte";
import axios from "axios";
let { url, icon="", class: className = "" } = $props(); let { url, icon="", class: className = "" } = $props();
@@ -9,14 +11,14 @@
<div <div
class={cn( class={cn(
"w-10 h-10 rounded-box bg-neutral text-neutral-content items-center justify-center flex", "w-10 h-10 rounded-2xl bg-neutral text-neutral-content items-center justify-center flex",
className, className,
)} )}
> >
{#if url && !hasError} {#if url && !hasError}
<img <img
src={"https://icons.duckduckgo.com/ip3/" + url + ".ico"} src={"https://icons.duckduckgo.com/ip3/" + url + ".ico"}
class="rounded-box w-full h-full" class="bg-neutral rounded-2xl w-2/3 h-2/3"
alt="Favicon de {url}" alt="Favicon de {url}"
onerror={() => { hasError = true }} onerror={() => { hasError = true }}
/> />

View File

@@ -174,7 +174,7 @@
<span>No result</span> <span>No result</span>
</div> </div>
{:else} {:else}
<p class="text-base-content/60"> <p class="text-base-content/60 mb-2">
{result.LeakResult.Rows.length} results in {convertNanoSeconds( {result.LeakResult.Rows.length} results in {convertNanoSeconds(
result.LeakResult.Duration, result.LeakResult.Duration,
)} )}