Skip to content

Commit

Permalink
resolved sizing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Levin committed Oct 19, 2024
1 parent cee93ba commit edceff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/algground_web/live/pages/live_home_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,21 @@ defmodule AlggroundWeb.LiveHomePage do
cond do
assigns.groundwater >= 150 ->
~H"""
<p class="mt-2 max-w-lg text-lg/6 text-green-600 max-lg:text-center">
<p class="mt-2 mx-auto flex justify-center text-lg/6 text-green-600 ">
<%= @groundwater %>m
</p>
"""

assigns.groundwater < 150 and assigns.groundwater >= 50 ->
~H"""
<p class="mt-2 max-w-lg text-lg/6 text-amber-500 max-lg:text-center">
<p class="mt-2 mx-auto flex justify-center text-lg/6 text-green-600 ">
<%= @groundwater %>m
</p>
"""

assigns.groundwater < 50 ->
~H"""
<p class="mt-2 max-w-lg text-lg/6 text-red-600 max-lg:text-center">
<p class="mt-2 mx-auto flex justify-center text-lg/6 text-green-600 ">
<%= @groundwater %>m
</p>
"""
Expand Down

0 comments on commit edceff1

Please sign in to comment.