Skip to content

Commit

Permalink
Merge pull request #110 from fac30/style/category-scroll
Browse files Browse the repository at this point in the history
style: remove scrollbar from categories bar
  • Loading branch information
maxitect authored Dec 19, 2024
2 parents 956b5c3 + f6d7e46 commit c009743
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/toolkit/components/CategoriesBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function CategoriesBar({
setCategories(allCategories.map((cat: Category) => cat.name));
} else {
setCategories([]);

}
};
fetchCategories();
Expand Down Expand Up @@ -68,7 +67,7 @@ export default function CategoriesBar({
</div>

{/* Scrollable Categories */}
<div className="flex overflow-x-auto whitespace-nowrap space-x-2 flex-grow">
<div className="flex overflow-x-auto whitespace-nowrap space-x-2 flex-grow no-scrollbar">
<Button
key={"All"}
label={"All"}
Expand Down
12 changes: 12 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ p {
.addToolInput {
@apply w-full p-2 rounded bg-transparent text-white border-b border-gray-700 focus:outline-none focus:ring-2 focus:ring-twd-primary-purple;
}

@layer utilities {
/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}

.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}

0 comments on commit c009743

Please sign in to comment.