Skip to content

Commit

Permalink
Merge pull request #72 from linked-planet/book-card-width-fixes
Browse files Browse the repository at this point in the history
book card header and entry width
  • Loading branch information
marcus-wishes authored Nov 12, 2024
2 parents f30ef0f + 7247fa6 commit e4eb0af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/src/components/BookCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const CardHeader = ({
}) => (
<div
className={twMerge(
"bg-surface-overlay flex w-full flex-1 justify-between px-4 py-3",
"bg-surface-overlay flex w-full max-w-fit flex-1 justify-between px-4 py-3",
className,
)}
style={style}
Expand Down Expand Up @@ -163,7 +163,7 @@ const CardHeaderTitle = ({
prefixStyle?: CSSProperties
}) => {
const _className = twMerge(
"mt-0 w-full truncate text-start text-xl font-medium",
"mt-0 truncate text-start text-xl font-medium",
className,
)

Expand Down Expand Up @@ -205,7 +205,7 @@ const CardHeaderSubtitle = ({
id?: string
}) => {
const _className = twMerge(
"text-text-subtlest mt-1 w-full flex-1 justify-start truncate text-start text-sm font-semibold",
"text-text-subtlest mt-1 flex-1 justify-start truncate text-start text-sm font-semibold",
className,
)
if (typeof children === "string") {
Expand Down

0 comments on commit e4eb0af

Please sign in to comment.