fix: make all public page FilterPills scrollable on mobile, add vertical padding
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<div
|
<div
|
||||||
class={cn(
|
class={cn(
|
||||||
"flex gap-2",
|
"flex gap-2",
|
||||||
scrollable ? "flex-nowrap overflow-x-auto pb-0.5 scrollbar-none" : "flex-wrap",
|
scrollable ? "flex-nowrap overflow-x-auto py-1 scrollbar-none" : "flex-wrap py-1",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -95,6 +95,7 @@
|
|||||||
|
|
||||||
<!-- Sort -->
|
<!-- Sort -->
|
||||||
<FilterPills
|
<FilterPills
|
||||||
|
scrollable
|
||||||
value={data.sort ?? "recent"}
|
value={data.sort ?? "recent"}
|
||||||
options={[
|
options={[
|
||||||
{ value: "recent", label: $_("magazine.sort.recent") },
|
{ value: "recent", label: $_("magazine.sort.recent") },
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
<!-- Sort -->
|
<!-- Sort -->
|
||||||
<FilterPills
|
<FilterPills
|
||||||
|
scrollable
|
||||||
value={data.sort ?? "name"}
|
value={data.sort ?? "name"}
|
||||||
options={[
|
options={[
|
||||||
{ value: "name", label: $_("models.sort.name") },
|
{ value: "name", label: $_("models.sort.name") },
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
|
|
||||||
<!-- Duration -->
|
<!-- Duration -->
|
||||||
<FilterPills
|
<FilterPills
|
||||||
|
scrollable
|
||||||
value={data.duration ?? "all"}
|
value={data.duration ?? "all"}
|
||||||
options={[
|
options={[
|
||||||
{ value: "all", label: $_("videos.duration.all") },
|
{ value: "all", label: $_("videos.duration.all") },
|
||||||
@@ -87,6 +88,7 @@
|
|||||||
|
|
||||||
<!-- Sort -->
|
<!-- Sort -->
|
||||||
<FilterPills
|
<FilterPills
|
||||||
|
scrollable
|
||||||
value={data.sort ?? "recent"}
|
value={data.sort ?? "recent"}
|
||||||
options={[
|
options={[
|
||||||
{ value: "recent", label: $_("videos.sort.recent") },
|
{ value: "recent", label: $_("videos.sort.recent") },
|
||||||
|
|||||||
Reference in New Issue
Block a user