Skip to content

Commit

Permalink
small deletions
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanhuanO committed Jun 19, 2024
1 parent 01bea53 commit 15e2197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions daisen/static/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@

<div class="main-body">
<div id="inner-container"></div>
<div id="page-btn-container"></div>
</div>

<div class="status-bar">
<div id="mouse-time"></div>
</div>
<div id="page-btn-container"></div>
</div>
</body>
</html>
6 changes: 3 additions & 3 deletions daisen/static/src/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ class Dashboard {
const height = window.innerHeight;
this._numCol = rowColTable[this._numWidget][0];
this._numRow = rowColTable[this._numWidget][1];
if (width >= 800) {
if (width >= 1200) {
this._numCol = 4;
}
if (width < 800 && width >= 500) {
if (width < 1200 && width >= 800) {
this._numCol = 3;
}
if (width < 500) {
if (width < 800) {
this._numCol = 2;
}
console.log(width, height);
Expand Down

0 comments on commit 15e2197

Please sign in to comment.