Skip to content

Commit 245e9d5

Browse files
authored
Merge pull request #64 from fewwwww/master
fix: sidebar overflow when having lots of apps
2 parents fe0ef2b + 3c61323 commit 245e9d5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

public/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
<link rel="icon" href="https://vivek9patel.github.io/images/logos/fevicon.svg" />
4949
<link rel="apple-touch-icon" href="./images/logos/logo.png" />
5050
<!-- <link rel="manifest" href="./manifest.json" /> -->
51+
<style>
52+
::-webkit-scrollbar {
53+
display: none;
54+
}
55+
</style>
5156
</head>
5257

5358
<body>

src/components/screen/side_bar.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function SideBar(props) {
2626

2727
return (
2828
<>
29-
<div className={(props.hide ? " -translate-x-full " : "") + " absolute transform duration-300 select-none z-40 left-0 top-0 h-full pt-7 w-auto flex flex-col justify-start items-center border-black border-opacity-60 bg-black bg-opacity-50"}>
29+
<div className={(props.hide ? " -translate-x-full " : "") + " absolute transform duration-300 select-none z-40 left-0 top-0 h-full pt-7 w-auto flex flex-col justify-start items-center border-black border-opacity-60 bg-black bg-opacity-50 overflow-scroll"}>
3030
{
3131
(
3232
Object.keys(props.closed_windows).length !== 0
@@ -47,7 +47,8 @@ export function AllApps(props) {
4747

4848
return (
4949
<div
50-
className={`absolute bottom-0 w-10 h-10 rounded m-1 hover:bg-white hover:bg-opacity-10 flex items-center justify-center`}
50+
className={`w-10 h-10 rounded m-1 hover:bg-white hover:bg-opacity-10 flex items-center justify-center`}
51+
style={{marginTop: 'auto'}}
5152
onMouseEnter={() => {
5253
setTitle(true);
5354
}}

0 commit comments

Comments
 (0)