mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 08:23:04 +01:00
8 lines
225 B
TypeScript
8 lines
225 B
TypeScript
export function computeCardWidth (width: number, breakpoint: string, cardPadding: number = 16): number {
|
|
switch (breakpoint) {
|
|
case 'xs':
|
|
return (width - (cardPadding * 2)) / 2
|
|
default:
|
|
return 150
|
|
}
|
|
}
|