Skip to content

Commit

Permalink
add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
ordinalspractice committed Jan 20, 2025
1 parent 6c6567b commit b9650c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/src/components/TooltipWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const TooltipWrapper = ({
</div>
</TooltipTrigger>
<TooltipContent sideOffset={5}>
<p className="text-xs">{getTooltipText()}</p>
<p className="tooltip-text">{getTooltipText()}</p>
</TooltipContent>
</div>
</Tooltip>
Expand Down
7 changes: 6 additions & 1 deletion www/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--size: calc((var(--width-target) + var(--height-target)) / 2);
--margin-horizontal: calc((100vw - var(--size) * 5) / 8);

--font-xs: calc(var(--size) * 0.029);
--font-xs: calc(var(--size) * 0.045);
--font-sm: calc(var(--size) * 0.073);
--font-md: calc(var(--size) * 0.118);
Expand Down Expand Up @@ -87,7 +88,7 @@ body {
opacity: 0.9;
cursor: pointer;
background-color: hsl(var(--dark-1) / 0.1);
text-shadow: var(--glow);
text-shadow: var(--glow-sm);
}

.common-component:disabled:hover {
Expand Down Expand Up @@ -125,6 +126,10 @@ body {
box-shadow: var(--glow-lg);
}

.tooltip-text {
font-size: var(--font-xxs);
}

.input-placeholder {
padding: calc(var(--font-sm) * 1.6);
}
Expand Down

0 comments on commit b9650c9

Please sign in to comment.