Skip to content

Commit

Permalink
Fix double scrollbars (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster authored Apr 27, 2022
1 parent 4b89d78 commit df2aff7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
4 changes: 4 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
.table-col-m {
width: 20rem;
}

html {
background-color: rgb(243 244 246);
}
35 changes: 22 additions & 13 deletions assets/js/components/Layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ const Layout = () => {

return (
<>
<main className="bg-gray-100 dark:bg-gray-800 h-screen overflow-hidden relative">
<main className="bg-gray-100 dark:bg-gray-800 relative">
<div className="flex items-start justify-between">
<div
className={classNames(
'h-screen block shadow-lg relative w-64 flex-shrink-0',
'h-screen block shadow-lg fixed w-64 flex-shrink-0',
{ hidden: isCollapsed }
)}
>
Expand Down Expand Up @@ -109,7 +109,12 @@ const Layout = () => {
</div>
<div className="flex flex-col w-full md:space-y-4">
<header className="w-full h-16 z-40 flex items-center justify-between">
<div className="block ml-6">
<div
className={classNames('block', {
'ml-72': !isCollapsed,
'ml-6': isCollapsed,
})}
>
<button
className="flex p-2 items-center rounded-full bg-white shadow text-gray-500 text-md"
onClick={handleSidebar}
Expand Down Expand Up @@ -175,7 +180,11 @@ const Layout = () => {
</div>
</div> */}
</header>
<div className="overflow-auto h-screen pb-24 px-4 md:px-6">
<div
className={classNames('pb-24 px-4 md:px-6', {
'ml-64': !isCollapsed,
})}
>
<div className="py-6">
<div className="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
<div className="py-4">
Expand All @@ -186,16 +195,16 @@ const Layout = () => {
</div>
</div>
</div>
<footer className="p-4 z-10 fixed bottom-0 w-full bg-white shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800">
<span className="text-sm text-gray-500 sm:text-center dark:text-gray-400">
© 2020-2022 SUSE LLC
</span>
<span className="flex items-center mt-3 text-sm text-gray-500 dark:text-gray-400 sm:mt-0">
This tool is free software released under the Apache License,
Version 2.0
</span>
</footer>
</main>
<footer className="p-4 bg-white rounded-lg shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800">
<span className="text-sm text-gray-500 sm:text-center dark:text-gray-400">
© 2020-2022 SUSE LLC
</span>
<span className="flex items-center mt-3 text-sm text-gray-500 dark:text-gray-400 sm:mt-0">
This tool is free software released under the Apache License, Version
2.0
</span>
</footer>
</>
);
};
Expand Down

0 comments on commit df2aff7

Please sign in to comment.