Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed Jun 8, 2024
1 parent cf468d1 commit ae3f944
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/Mainframe/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "./layout.scss";
import "./scrollbar.scss";

const Layout = ({ HOST_IP, API_KEY }) => {
const isMobile = useMediaQuery({ query: `(max-width: 760px)` });
const isMobile = useMediaQuery({ query: `(max-width: 750px)` });
const [showSidebar, setShowSidebar] = useState(!isMobile);

return (
Expand All @@ -27,7 +27,10 @@ const Layout = ({ HOST_IP, API_KEY }) => {
showSidebar={showSidebar}
setShowSidebar={setShowSidebar}
/>
<ContentSection HOST_IP={HOST_IP} API_KEY={API_KEY} />
<ContentSection
HOST_IP={HOST_IP}
API_KEY={API_KEY}
/>
</div>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Mainframe/SidebarSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import "./sidebarSection.scss";

const SidebarSection = ({ showSidebar, setShowSidebar, isMobile }) => {
const [currentElement, setCurrentElement] = useState(
window.location.hash.substring(2)
"#" + window.location.hash.substring(1)
);

const itemClicked = (link) => {
Expand Down
1 change: 1 addition & 0 deletions src/Mainframe/sidebarSection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

ul {
li {
cursor: pointer;
display: flex;
flex-direction: column;
transition: all 0.15s ease-in-out;
Expand Down
1 change: 1 addition & 0 deletions src/components/IconButton/iconButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

&.big {
&.btn {
cursor: pointer;
margin-bottom: 10px;
display: table;
flex-direction: column;
Expand Down

0 comments on commit ae3f944

Please sign in to comment.