Skip to content

Commit c1f3698

Browse files
committed
refactor: enhance section layout in admin live view for improved navigation
- Added scroll margin to multiple sections in the admin live view to improve user navigation and visibility when scrolling. - Ensured consistent styling across sections for a more cohesive user experience.
1 parent 78a3b2c commit c1f3698

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/algora_web/live/admin/admin_live.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule AlgoraWeb.Admin.AdminLive do
3535
def render(assigns) do
3636
~H"""
3737
<div class="space-y-8 p-8">
38-
<section id="notes">
38+
<section id="notes" class="scroll-mt-16">
3939
<div class="mb-4 flex items-center justify-between">
4040
<h1 class="text-2xl font-bold">Notes</h1>
4141
<div class="flex gap-2">
@@ -94,13 +94,13 @@ defmodule AlgoraWeb.Admin.AdminLive do
9494
</div>
9595
</section>
9696
97-
<section id="analytics">
97+
<section id="analytics" class="scroll-mt-16">
9898
<div class="mb-4">
9999
<h1 class="text-2xl font-bold">Company Analytics</h1>
100100
</div>
101101
</section>
102102
103-
<section id="metrics">
103+
<section id="metrics" class="scroll-mt-16">
104104
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4">
105105
<.stat_card
106106
title="Total Companies"
@@ -129,7 +129,7 @@ defmodule AlgoraWeb.Admin.AdminLive do
129129
</div>
130130
</section>
131131
132-
<section id="customers">
132+
<section id="customers" class="scroll-mt-16">
133133
<.card>
134134
<.card_header>
135135
<.card_title>Company Details</.card_title>
@@ -187,7 +187,7 @@ defmodule AlgoraWeb.Admin.AdminLive do
187187
</.card>
188188
</section>
189189
190-
<section id="funnel">
190+
<section id="funnel" class="scroll-mt-16">
191191
<div class="mx-auto h-500 flex">
192192
<div class="w-3/4 p-0">
193193
<.card>

0 commit comments

Comments
 (0)