Skip to content

Commit

Permalink
feat : Article design and Window size
Browse files Browse the repository at this point in the history
  • Loading branch information
skang132 committed May 29, 2024
1 parent caefaa0 commit d664e52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ html, body {
position: relative;
margin-left: 8px;
padding-left: 5px;
width: 275px;
width: 282px;
height: 50px;
overflow-y: auto;
border: 1px solid #800020;
Expand All @@ -249,8 +249,8 @@ html, body {
position: relative;
margin-left: 8px;
padding-left: 5px;
width: 275px;
height: 125px;
width: 282px;
height: 128px;
overflow-y: auto;
border: 1px solid #d3d3d3;
border-left: 5px solid #d3d3d3;
Expand All @@ -261,7 +261,7 @@ html, body {
position: relative;
margin-left: 8px;
padding-left: 5px;
width: 275px;
width: 282px;
height: 72px;
overflow-y: auto;
border: 1px solid #99c68e;
Expand Down
7 changes: 1 addition & 6 deletions static/js/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ function scaleDashboard() {
const scaleY = layoutSidenavContent.offsetHeight / 1045;
const scale = Math.min(scaleX, scaleY);

if (layoutSidenavContent.offsetWidth < 1680) {
dashboard.style.transform = `scale(${scale})`;
}
else {
dashboard.style.transform = `scale(${scaleX*0.99}, ${scaleY})`;
}
dashboard.style.transform = `scale(${scaleX*0.99}, ${scaleY})`;

dashboard.style.transformOrigin = '0 0px';
}
Expand Down

0 comments on commit d664e52

Please sign in to comment.