Skip to content

Commit

Permalink
fix ugly scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfregly committed Jan 9, 2024
1 parent 4d0312c commit 9e21fd2
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6058,7 +6058,7 @@ function wg(e) {
" games"
] })
] }),
/* @__PURE__ */ T.jsxs("div", { className: "overflow-scroll flex flex-warp items-center order-1 md:order-2 mb-3 md:mb-0", children: [
/* @__PURE__ */ T.jsxs("div", { className: "overflow-scroll no-scrollbar flex flex-warp items-center order-1 md:order-2 mb-3 md:mb-0", children: [
n.Variant ? /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
/* @__PURE__ */ T.jsx("div", { className: "mr-1 font-black text-blue-500", children: "VARIANT" }),
/* @__PURE__ */ T.jsx("select", { className: "px-2 mr-1 bg-zinc-800 text-xs h-6 border font-bold border-zinc-100 focus:outline-none", id: "players", onChange: (u) => r((d) => ({ ...d, Variant: u.target.value.replace(/\s/g, "") })), children: t.variants.map((u) => /* @__PURE__ */ T.jsx("option", { value: u, children: u }, u)) })
Expand Down
2 changes: 1 addition & 1 deletion dist/index.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@quibbble/boardgame",
"private": false,
"version": "1.2.2",
"version": "1.2.3",
"description": "React component library for Quibbble boardgames.",
"main": "dist/index.umd.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/components/HomePage/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function HomePage(props) {
</button>
<a className="italic text-xs py-1 px-2 border-blue-500 border border-dashed text-blue-500" href="https://quibbble.com" target="_blank">more <span className="text-zinc-100 font-['lobster'] text-sm not-italic">quibbble</span> games</a>
</div>
<div className="overflow-scroll flex flex-warp items-center order-1 md:order-2 mb-3 md:mb-0">
<div className="overflow-scroll no-scrollbar flex flex-warp items-center order-1 md:order-2 mb-3 md:mb-0">
{
options.Variant ? <>
<div className="mr-1 font-black text-blue-500">VARIANT</div>
Expand Down
12 changes: 12 additions & 0 deletions src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
}
}

@layer utilities {
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}

html, body {
scroll-behavior: smooth;

Expand Down

0 comments on commit 9e21fd2

Please sign in to comment.