Skip to content

Commit 4088879

Browse files
committed
フィルタのスタイルを調整
1 parent 73ab0c2 commit 4088879

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

web/app/globals.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@
1616
.cm-pb-footer {
1717
padding-bottom: calc(3rem + env(safe-area-inset-bottom));
1818
}
19+
20+
.scrollbar-hide::-webkit-scrollbar {
21+
display: none;
22+
}
23+
.scrollbar-hide {
24+
-ms-overflow-style: none;
25+
scrollbar-width: none;
26+
}

web/components/course/components/TagFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function TagFilter<T extends string>({
1111
}: Props<T>) {
1212
const tags = Array.from(keyNameMap.keys());
1313
return (
14-
<div className="flex flex-wrap gap-2">
14+
<div className="scrollbar-hide flex justify-start gap-1 overflow-x-auto whitespace-nowrap">
1515
{tags.map((tag) => (
1616
<div key={tag}>
1717
<input
@@ -23,7 +23,7 @@ export default function TagFilter<T extends string>({
2323
/>
2424
<label
2525
htmlFor={tag}
26-
className="cursor-pointer rounded-full bg-gray-200 px-3 py-1 text-gray-800 transition-colors duration-200 peer-checked:bg-primary peer-checked:text-white"
26+
className="badge badge-lg cursor-pointer bg-gray-200 text-gray-800 transition-colors duration-200 peer-checked:bg-primary peer-checked:text-white"
2727
>
2828
{keyNameMap.get(tag)}
2929
</label>

0 commit comments

Comments
 (0)