Skip to content

Commit 0316fad

Browse files
committed
style: update tooltip and dashboard tooltip content
- Adjusted tooltip styles to include a minimum width for better visibility. - Changed tooltip content text size in the user dashboard for improved readability.
1 parent 84b0e82 commit 0316fad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/algora_web/components/ui/tooltip.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defmodule AlgoraWeb.Components.UI.Tooltip do
5555
data-side={@side}
5656
class={
5757
classes([
58-
"tooltip-content absolute hidden whitespace-nowrap group-hover/tooltip:block",
58+
"tooltip-content absolute hidden group-hover/tooltip:block min-w-40",
5959
"z-50 w-auto overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
6060
@variant_class,
6161
@class

lib/algora_web/live/user/dashboard_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ defmodule AlgoraWeb.User.DashboardLive do
184184
<label for="available" class="text-sm font-medium">Available to work</label>
185185
<.tooltip>
186186
<.icon name="tabler-help-circle" class="h-4 w-4 text-muted-foreground" />
187-
<.tooltip_content side="bottom" class="max-w-xs text-sm">
187+
<.tooltip_content side="bottom" class="text-xs">
188188
When enabled, you will receive hourly contract offers
189189
</.tooltip_content>
190190
</.tooltip>

0 commit comments

Comments
 (0)