style(web): squarer corners

- base radius from 10px to 4px; one value (--radius in src/index.css) sets every corner
- no fully round shapes any more: play button, search box, pills and artist photos are squares with small corners
This commit is contained in:
tgiachi 2026-11-12 12:03:53 +01:00
commit d7bd2c75db
8 changed files with 9 additions and 9 deletions

View file

@ -15,7 +15,7 @@ export default function ArtistPhoto({ artistId, name, size }: { artistId: number
return (
<div
style={{ width: size, height: size }}
className="relative flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary text-primary-foreground"
className="relative flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary text-primary-foreground"
>
{failed !== src ? (
<img

View file

@ -28,7 +28,7 @@ export default function PlayerControls({ large = false }: { large?: boolean }) {
<SkipBack />
</Button>
<Button
className={cn(large ? 'size-16' : 'size-11', 'rounded-full')}
className={cn(large ? 'size-16' : 'size-11', 'rounded-md')}
aria-label={player.playing ? t('player.pause') : t('player.play')}
disabled={none}
onClick={player.togglePlay}

View file

@ -45,7 +45,7 @@
}
:root {
--radius: 0.625rem;
--radius: 0.25rem;
}
@layer base {

View file

@ -57,7 +57,7 @@ function AlbumView({ id }: { id: number }) {
</header>
<div>
<Button className="h-12 gap-2 rounded-full px-6" disabled={items.length === 0} onClick={() => playTracks(items, 0)}>
<Button className="h-12 gap-2 rounded-md px-6" disabled={items.length === 0} onClick={() => playTracks(items, 0)}>
<Play />
{t('player.play')}
</Button>

View file

@ -52,7 +52,7 @@ function ArtistView({ id }: { id: number }) {
</p>
{!nothingHere && (
<div>
<Button className="h-12 gap-2 rounded-full px-6" disabled={songs.length === 0} onClick={() => playTracks(songs, 0)}>
<Button className="h-12 gap-2 rounded-md px-6" disabled={songs.length === 0} onClick={() => playTracks(songs, 0)}>
<Play />
{t('player.play')}
</Button>

View file

@ -60,7 +60,7 @@ export function Similar({ artistId }: { artistId: number }) {
<li key={item.artist.id}>
<Link
to={`/artists/${item.artist.id}`}
className="flex min-h-11 items-center gap-2 rounded-full bg-secondary px-4 font-semibold hover:bg-accent"
className="flex min-h-11 items-center gap-2 rounded-md bg-secondary px-4 font-semibold hover:bg-accent"
>
{item.artist.name}
{item.in_library && <span className="text-xs font-normal text-primary">{t('artist.inLibrary')}</span>}
@ -101,7 +101,7 @@ export function Tags({ artistId }: { artistId: number }) {
.sort((a, b) => b.weight - a.weight)
.slice(0, MAX_TAGS)
.map((tag) => (
<li key={tag.name} className="rounded-full bg-secondary px-3 py-1 text-sm">
<li key={tag.name} className="rounded-md bg-secondary px-3 py-1 text-sm">
{tag.name}
</li>
))}

View file

@ -61,7 +61,7 @@ export default function SearchPage() {
placeholder={t('search.placeholder')}
autoComplete="off"
onChange={(e) => setText(e.target.value)}
className="h-12 rounded-full px-5"
className="h-12 rounded-md px-5"
/>
</div>

View file

@ -110,7 +110,7 @@ export default function SettingsPage() {
<div className="flex flex-wrap items-center gap-4">
<p className="font-semibold">{user?.username}</p>
{user?.is_admin && (
<span className="rounded-full bg-secondary px-3 py-1 text-sm">{t('settings.admin')}</span>
<span className="rounded-md bg-secondary px-3 py-1 text-sm">{t('settings.admin')}</span>
)}
<Button variant="outline" onClick={() => void leave()}>
{t('settings.signOut')}