Skip to content

Commit

Permalink
fix(mobile): responsive design mobile mode
Browse files Browse the repository at this point in the history
  • Loading branch information
osmancoskun committed Oct 16, 2024
1 parent 7fa0ed3 commit 159e86a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/lib/layout/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
let routes = ["download", "contact", "wiki"];
</script>

<div class="navbar bg-base-100 shadow-lg rounded-lg">
<div class="navbar bg-base-100 shadow-md rounded-lg">
<ul class="flex-1 menu menu-horizontal">
<li>
<a
Expand Down Expand Up @@ -39,9 +39,10 @@
></path></svg
>
</div>
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<ul
tabindex="0"
class="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box"
class="dropdown-content z-[1] menu p-2 shadow-md bg-base-100 rounded-box"
>
{#each routes as route}
<li class="block md:hidden capitalize">
Expand Down
16 changes: 9 additions & 7 deletions src/lib/layout/navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
<label for="my-drawer" aria-label="close sidebar" class="drawer-overlay"
></label>
<ul class="menu menu-xs h-screen bg-base-200 max-w-xs w-full border-right">
<li class="flex-1">
{#if urls?.length > 0}
{#each urls as url}
<WikiLink NodeURLs={url} />
{/each}
{/if}
</li>
<div class="h-[calc(100vh-4rem)] overflow-y-auto">
<li class="md:flex-1">
{#if urls?.length > 0}
{#each urls as url}
<WikiLink NodeURLs={url} />
{/each}
{/if}
</li>
</div>
<li>
<a href="/" class="w-full flex justify-center btn btn-info">
<IconArrowBackUp class="w-5 h-5" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/download/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<main class="mt-10">
<div class="w-full grid grid-cols-1 md:grid-cols-2 gap-5">
{#each DownloadPageData as data}
<div class="card card-body shadow-xl rounded-md dark:bg-slate-800">
<div class="card card-body shadow-md rounded-md dark:bg-slate-800">
<h1 class="font-bold text-xl">{data.label}</h1>
<h1>ISO Files</h1>
{#each data.iso as iso, isoindex}
Expand Down

0 comments on commit 159e86a

Please sign in to comment.