Skip to content

Commit

Permalink
Merge pull request #59 from victoralvesf/fix-playlist-large-names
Browse files Browse the repository at this point in the history
Fix playlist large names
  • Loading branch information
victoralvesf authored Oct 25, 2024
2 parents 0dbbab0 + 8a3cd0b commit 0408894
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aonsoku",
"private": true,
"version": "0.3.0",
"version": "0.3.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aonsoku"
version = "0.3.0"
version = "0.3.1"
description = "A modern desktop client for Navidrome/Subsonic servers."
authors = ["Victor Alves"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "Aonsoku",
"version": "0.3.0"
"version": "0.3.1"
},
"tauri": {
"allowlist": {
Expand Down
6 changes: 4 additions & 2 deletions src/app/components/album/image-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function ImageHeader({
</p>
<h1
className={clsx(
'scroll-m-20 font-bold tracking-tight antialiased drop-shadow-md',
'scroll-m-20 font-bold tracking-tight antialiased drop-shadow-md line-clamp-2',
getTextSizeClass(title),
subtitle ? 'mb-1 2xl:mb-2' : 'mb-1',
)}
Expand All @@ -148,7 +148,9 @@ export default function ImageHeader({
)}

{isPlaylist && subtitle && (
<p className="text-sm opacity-70 drop-shadow-md">{subtitle}</p>
<p className="text-sm opacity-70 drop-shadow-md line-clamp-2">
{subtitle}
</p>
)}

<div className="flex gap-2 mt-2">{badges}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/tables/playlists-columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function playlistsColumns(): ColumnDefType<Playlist>[] {
<div className="flex flex-col w-full justify-center truncate">
<Link
to={ROUTES.PLAYLIST.PAGE(row.original.id)}
className="hover:underline truncate w-fit"
className="hover:underline truncate"
>
{row.original.name}
</Link>
Expand Down

0 comments on commit 0408894

Please sign in to comment.