Skip to content

Commit e5b84c3

Browse files
committed
refactor: simplify padding in DashboardLive sections
- Removed unnecessary height classes from the inactive account, contracts, and bounties sections, streamlining the layout. - Improved overall readability and maintainability of the code in the DashboardLive module.
1 parent 5740509 commit e5b84c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/algora_web/live/user/dashboard_live.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ defmodule AlgoraWeb.User.DashboardLive do
5151
~H"""
5252
<div class="flex lg:flex-row flex-col-reverse">
5353
<div class="flex-1 bg-background text-foreground lg:pr-96">
54-
<div :if={not @has_active_account} class="relative p-4 sm:p-6 md:p-8">
54+
<div :if={not @has_active_account} class="p-4 sm:p-6 md:p-8">
5555
<.section>
5656
<.card>
5757
<.card_header>
@@ -71,7 +71,7 @@ defmodule AlgoraWeb.User.DashboardLive do
7171
</.section>
7272
</div>
7373
<!-- Contracts section -->
74-
<div :if={length(@contracts) > 0} class="relative h-full p-4 sm:p-6 md:p-8">
74+
<div :if={length(@contracts) > 0} class="p-4 sm:p-6 md:p-8">
7575
<div class="flex justify-between">
7676
<div class="flex flex-col space-y-1.5">
7777
<h2 class="text-2xl font-semibold leading-none tracking-tight">
@@ -93,7 +93,7 @@ defmodule AlgoraWeb.User.DashboardLive do
9393
</div>
9494
</div>
9595
<!-- Bounties section -->
96-
<div :if={length(@bounties) > 0} class="relative h-full p-4 sm:p-6 md:p-8">
96+
<div :if={length(@bounties) > 0} class="p-4 sm:p-6 md:p-8">
9797
<.section title="Open bounties" subtitle="Bounties for you">
9898
<div id="bounties-container" phx-hook="InfiniteScroll">
9999
<.bounties bounties={@bounties} />

0 commit comments

Comments
 (0)