Skip to content

Commit e4eb0af

Browse files
Merge pull request #72 from linked-planet/book-card-width-fixes
book card header and entry width
2 parents f30ef0f + 7247fa6 commit e4eb0af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/src/components/BookCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const CardHeader = ({
113113
}) => (
114114
<div
115115
className={twMerge(
116-
"bg-surface-overlay flex w-full flex-1 justify-between px-4 py-3",
116+
"bg-surface-overlay flex w-full max-w-fit flex-1 justify-between px-4 py-3",
117117
className,
118118
)}
119119
style={style}
@@ -163,7 +163,7 @@ const CardHeaderTitle = ({
163163
prefixStyle?: CSSProperties
164164
}) => {
165165
const _className = twMerge(
166-
"mt-0 w-full truncate text-start text-xl font-medium",
166+
"mt-0 truncate text-start text-xl font-medium",
167167
className,
168168
)
169169

@@ -205,7 +205,7 @@ const CardHeaderSubtitle = ({
205205
id?: string
206206
}) => {
207207
const _className = twMerge(
208-
"text-text-subtlest mt-1 w-full flex-1 justify-start truncate text-start text-sm font-semibold",
208+
"text-text-subtlest mt-1 flex-1 justify-start truncate text-start text-sm font-semibold",
209209
className,
210210
)
211211
if (typeof children === "string") {

0 commit comments

Comments
 (0)