Skip to content

Commit

Permalink
Better performance on Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Feb 12, 2024
1 parent e4b30e1 commit cf393c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ export const Sidebar = (props: SidebarProps) => {
)}
<div className="sticky bottom-0 bg-slate-900 py-1 flex justify-center items-center text-xs text-gray-100 border-gray-400 border-t">
<select
className="text-gray-300/50 text-center bg-transparent w-full"
className="text-gray-300/50 text-center bg-transparent w-full outline-none m-1"
onChange={({ target }) => onSwitchLocale(target.value)}
value={currentLocale}
>
<option disabled>Choose Language</option>
{Object.entries(locales).map(([key, value]) => (
<option key={key} value={key}>
<option key={key} value={key} className="text-gray-800">
{value}
</option>
))}
Expand Down
6 changes: 5 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
body {
overflow-x: hidden;
overflow-y: scroll;
scrollbar-width: none;
}

body::-webkit-scrollbar {
display: none;
}

.scrollbar-hide {
scrollbar-width: none;
-ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
Expand Down

0 comments on commit cf393c3

Please sign in to comment.