|
23 | 23 | for (const entry of entries) { |
24 | 24 | const { target } = entry; |
25 | 25 | const { clientWidth } = target as HTMLElement; |
26 | | - if (clientWidth >= 2560) { |
27 | | - htmlEl.style.setProperty('font-size', '18px'); |
28 | | - ctl.allowDrag = true; |
29 | | - ctl.hideLeftSidebar = false; |
30 | | - ctl.hideRightSidebar = false; |
31 | | - ctl.hideLeftActionBar = false; |
32 | | - ctl.hideRightActionBar = false; |
33 | | - ctl.hideHeaderTopNav = false; |
34 | | - ctl.hidePaths = false; |
35 | | - ctl.hideCopyright = false; |
36 | | - } else if (clientWidth >= 1920) { |
37 | | - htmlEl.style.setProperty('font-size', '16px'); |
38 | | - ctl.allowDrag = true; |
39 | | - ctl.hideLeftSidebar = false; |
40 | | - ctl.hideRightSidebar = false; |
41 | | - ctl.hideLeftActionBar = false; |
42 | | - ctl.hideRightActionBar = false; |
43 | | - ctl.hideHeaderTopNav = false; |
44 | | - ctl.hidePaths = false; |
45 | | - ctl.hideCopyright = false; |
46 | | - } else if (clientWidth >= 1280) { |
47 | | - htmlEl.style.setProperty('font-size', '14px'); |
48 | | - ctl.allowDrag = false; |
49 | | - ctl.hideLeftSidebar = false; |
50 | | - ctl.hideRightSidebar = false; |
51 | | - ctl.hideLeftActionBar = false; |
52 | | - ctl.hideRightActionBar = true; |
53 | | - ctl.hideHeaderTopNav = false; |
54 | | - ctl.hidePaths = false; |
55 | | - ctl.hideCopyright = false; |
56 | | - } else { |
| 26 | + if (clientWidth < 1280) { |
57 | 27 | htmlEl.style.setProperty('font-size', '12px'); |
58 | 28 | ctl.allowDrag = false; |
59 | 29 | ctl.hideLeftSidebar = true; |
60 | 30 | ctl.hideRightSidebar = true; |
61 | 31 | ctl.hideLeftActionBar = true; |
62 | 32 | ctl.hideRightActionBar = true; |
| 33 | + ctl.showDirModal = true; |
63 | 34 | ctl.hideHeaderTopNav = true; |
64 | 35 | ctl.hidePaths = true; |
65 | 36 | ctl.hideCopyright = true; |
| 37 | + } else { |
| 38 | + if (clientWidth >= 2560) { |
| 39 | + htmlEl.style.setProperty('font-size', '18px'); |
| 40 | + } else if (clientWidth >= 1920) { |
| 41 | + htmlEl.style.setProperty('font-size', '16px'); |
| 42 | + } else { |
| 43 | + htmlEl.style.setProperty('font-size', '14px'); |
| 44 | + } |
| 45 | + ctl.allowDrag = false; |
| 46 | + ctl.hideLeftSidebar = false; |
| 47 | + ctl.hideRightSidebar = false; |
| 48 | + ctl.hideLeftActionBar = false; |
| 49 | + ctl.hideRightActionBar = false; |
| 50 | + ctl.showDirModal = false; |
| 51 | + ctl.hideHeaderTopNav = false; |
| 52 | + ctl.hidePaths = false; |
| 53 | + ctl.hideCopyright = false; |
66 | 54 | } |
67 | 55 | } |
68 | 56 | }); |
|
0 commit comments