Skip to content

Commit

Permalink
fixed scrollbar and switch devices menu opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 committed Feb 16, 2024
1 parent 77f41c7 commit 121d409
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
14 changes: 7 additions & 7 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
Expand Up @@ -126,7 +126,7 @@
"rollup-plugin-generate-package-json": "^3.2.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"tailwind-scrollbar": "^3.0.5",
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.2.2",
"typescript": "^4.8.4",
"webm-duration-fix": "^1.0.4",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SwitchInputView/DropdownContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const DropdownContent: FC<DropdownContentProps> = ({ username, status }) => {
leaveTo='transform opacity-0 scale-95'
>
<Menu.Items
className='pi-max-h-[13.125rem] pi-z-50 pi-absolute pi-top-0 pi-right-[4.5rem] pi-mt-[-9.5rem] pi-w-56 pi-origin-top-right pi-rounded-md pi-bg-black pi-shadow-lg pi-ring-1 pi-ring-black pi-ring-opacity-5 pi-focus:outline-none pi-cursor-auto pi-border-gray-600 pi-border pi-py-2 pi-overflow-y-auto pi-scrollbar-thin pi-scrollbar-thumb-gray-400 pi-dark:scrollbar-thumb-gray-400 pi-scrollbar-thumb-rounded-full pi-scrollbar-thumb-opacity-50 pi-scrollbar-track-gray-900 pi-dark:scrollbar-track-gray-900 pi-scrollbar-track-rounded-full pi-scrollbar-track-opacity-25'
className='pi-max-h-[13.125rem] pi-z-50 pi-absolute pi-top-0 pi-right-[4.5rem] pi-mt-[-9.5rem] pi-w-56 pi-origin-top-right pi-rounded-md pi-shadow-lg pi-ring-1 pi-bg-black pi-bg-opacity-[0.99] pi-ring-black pi-ring-opacity-5 pi-focus:outline-none pi-cursor-auto pi-border-gray-600 pi-border pi-py-2 pi-overflow-y-auto pi-scrollbar-thin pi-scrollbar-thumb-gray-400 pi-dark:scrollbar-thumb-gray-400 pi-scrollbar-thumb-rounded-full pi-scrollbar-thumb-opacity-50 pi-scrollbar-track-gray-900 pi-dark:scrollbar-track-gray-900 pi-scrollbar-track-rounded-full pi-scrollbar-track-opacity-25'
data-stop-propagation={true}
>
<div className='' data-stop-propagation={true}>
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ module.exports = {
scrollbar: ['rounded'],
extend: {},
},
plugins: [require('tailwind-scrollbar')({ nocompatible: true })],
plugins: [
require('tailwind-scrollbar')({ nocompatible: true, preferredStrategy: 'pseudoelements' }),
],
corePlugins: {
preflight: false,
},
Expand Down

0 comments on commit 121d409

Please sign in to comment.