From 55e6ce7cca58df4a958dba19dc94aea701f51d1d Mon Sep 17 00:00:00 2001 From: Ed Sungik Choi Date: Mon, 29 May 2023 19:06:27 +0900 Subject: [PATCH] feat(category-filter): add "overflow-x: auto" to catergory bar style --- .lintstagedrc | 2 +- package.json | 2 +- src/components/catetgoryFilter/categoryFilter.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.lintstagedrc b/.lintstagedrc index ca887bd..3953645 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,3 +1,3 @@ { - "**/*.(js|ts)?(x)": ["yarn lint:fix", "yarn format", "yarn typecheck"] + "**/*.(js|ts)?(x)": ["yarn lint:fix", "yarn format"] } diff --git a/package.json b/package.json index 2c16bc0..73b3b2a 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "typecheck": "tsc --noEmit", "semantic-release": "semantic-release", "lint-staged": "lint-staged", - "pre-commit": "yarn lint-staged", + "pre-commit": "yarn lint-staged && yarn typecheck", "postinstall": "husky install" }, "dependencies": { diff --git a/src/components/catetgoryFilter/categoryFilter.tsx b/src/components/catetgoryFilter/categoryFilter.tsx index b260cf7..f37db43 100644 --- a/src/components/catetgoryFilter/categoryFilter.tsx +++ b/src/components/catetgoryFilter/categoryFilter.tsx @@ -130,7 +130,7 @@ const Divider = styled.div` const CategoryUl = styled.ul` display: flex; list-style: none; - overflow-x: scroll; + overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;