From 9bf6fd00393fad153cb22582957ebf6a9af16b31 Mon Sep 17 00:00:00 2001 From: tgiachi Date: Mon, 16 Nov 2026 11:27:18 +0100 Subject: [PATCH] style: square the corners of the web app The base radius goes from 8 px to 2 px, which squares buttons, fields, dialogs, covers and cards at once. The things that were made round on purpose are square now too: the play button, the switch and its knob, the chip of a friend, the bars of the statistics, the tab marker, the dot of a request, and the volume slider (a thin track and a bar for a knob). The rings of a missing cover stay round: they are the drawing of Sonda. --- web/src/components/FriendChip.tsx | 2 +- web/src/components/StatBars.tsx | 4 +-- web/src/components/VolumeControl.tsx | 4 ++- web/src/components/layout/PhoneTabs.tsx | 2 +- web/src/components/layout/Player.test.tsx | 4 +-- web/src/components/layout/PlayerControls.tsx | 2 +- web/src/components/ui/switch.tsx | 8 ++--- web/src/index.css | 35 +++++++++++++++++++- web/src/pages/RequestsPage.tsx | 2 +- web/src/pages/admin/FederationFriends.tsx | 2 +- web/src/pages/admin/FederationPage.test.tsx | 2 +- 11 files changed, 51 insertions(+), 16 deletions(-) diff --git a/web/src/components/FriendChip.tsx b/web/src/components/FriendChip.tsx index e261e5c..f42ff74 100644 --- a/web/src/components/FriendChip.tsx +++ b/web/src/components/FriendChip.tsx @@ -13,7 +13,7 @@ export default function FriendChip({ friend, className }: { friend: number; clas return ( {name} diff --git a/web/src/components/StatBars.tsx b/web/src/components/StatBars.tsx index 284767b..0f34178 100644 --- a/web/src/components/StatBars.tsx +++ b/web/src/components/StatBars.tsx @@ -21,8 +21,8 @@ export function ShareBars({ label, bars, wide = false }: { label: string; bars: {bars.map((b) => (
  • {b.label} -
  • diff --git a/web/src/components/VolumeControl.tsx b/web/src/components/VolumeControl.tsx index 7eb1311..569eea3 100644 --- a/web/src/components/VolumeControl.tsx +++ b/web/src/components/VolumeControl.tsx @@ -1,3 +1,4 @@ +import type { CSSProperties } from 'react' import { Volume1, Volume2, VolumeX } from 'lucide-react' import { useTranslation } from 'react-i18next' import { Button } from '@/components/ui/button' @@ -31,7 +32,8 @@ export default function VolumeControl({ className }: { className?: string }) { aria-label={t('player.volume')} aria-valuetext={`${percent}%`} onChange={(e) => setVolume(Number(e.target.value) / 100)} - className="h-11 w-24 cursor-pointer accent-primary max-sm:hidden" + style={{ "--fill": `${percent}%` } as CSSProperties} + className="slider h-11 w-24 cursor-pointer max-sm:hidden" /> ) diff --git a/web/src/components/layout/PhoneTabs.tsx b/web/src/components/layout/PhoneTabs.tsx index f8a53c3..549df1a 100644 --- a/web/src/components/layout/PhoneTabs.tsx +++ b/web/src/components/layout/PhoneTabs.tsx @@ -43,7 +43,7 @@ export default function PhoneTabs() {