|
4 | 4 | .pagination__controls, .pagination__info, .pagination__nav (elements) */ |
5 | 5 |
|
6 | 6 | .pagination { |
7 | | - @apply flex w-full flex-col items-stretch justify-between gap-2 sm:flex-row sm:items-end sm:gap-0; |
| 7 | + @apply flex w-full flex-col items-stretch justify-between gap-2 sm:flex-row sm:flex-wrap sm:items-end sm:gap-0; |
8 | 8 | } |
9 | 9 |
|
10 | 10 | /* === Per-page selector (left) === */ |
11 | 11 |
|
12 | 12 | .pagination__per-page { |
13 | 13 | --pagination-per-page-width: 10rem; /* w-48 equivalent; use 165px for exact Figma match */ |
14 | | - @apply flex items-center; |
| 14 | + @apply flex shrink-0 items-center; |
15 | 15 | } |
16 | 16 |
|
17 | 17 | .pagination__per-page-input { |
|
49 | 49 |
|
50 | 50 | /* === Controls pill (right) === */ |
51 | 51 |
|
| 52 | +.pagination__controls-wrap { |
| 53 | + @apply flex w-full min-w-0 sm:flex-[1_1_28rem] sm:min-w-[22rem] sm:justify-end; |
| 54 | +} |
| 55 | + |
52 | 56 | .pagination__controls { |
53 | | - @apply flex w-fit shrink-0 items-center gap-3 rounded-lg border border-tertiary bg-primary overflow-hidden ps-3 pe-2 overflow-visible; |
| 57 | + @apply flex w-full min-w-0 max-w-full items-center gap-3 rounded-lg border border-tertiary bg-primary ps-3 pe-2 overflow-x-auto overflow-y-hidden overscroll-x-contain touch-pan-x sm:w-fit; |
| 58 | + -webkit-overflow-scrolling: touch; |
| 59 | + scrollbar-gutter: stable; |
54 | 60 | } |
55 | 61 |
|
56 | 62 | /* Info text with right-border divider */ |
57 | 63 | .pagination__info { |
58 | | - @apply flex items-center py-1 pe-3 border-e border-tertiary whitespace-nowrap overflow-hidden text-ellipsis text-sm text-content leading-5 font-normal; |
| 64 | + @apply shrink-0 flex items-center py-1 pe-3 border-e border-tertiary whitespace-nowrap text-sm text-content leading-5 font-normal; |
59 | 65 |
|
60 | 66 | &:last-child { |
61 | 67 | @apply border-e-0 pe-1; |
|
68 | 74 |
|
69 | 75 | /* Nav buttons wrapper */ |
70 | 76 | .pagination__nav { |
71 | | - @apply flex items-center; |
| 77 | + @apply shrink-0 flex items-center; |
72 | 78 | } |
73 | 79 |
|
74 | 80 | /* === Pagy nav === */ |
75 | 81 | .pagy.series-nav { |
76 | | - @apply flex items-center gap-0.5; |
| 82 | + @apply flex min-w-max items-center gap-0.5 whitespace-nowrap; |
77 | 83 |
|
78 | 84 | a[role="separator"] { |
79 | 85 | @apply px-2 text-sm text-content-secondary; |
|
0 commit comments