Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 0d1d1c1

Browse files
committed
💄 More consistent UI progress bars
1 parent 8492174 commit 0d1d1c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/assets/css/mod_ramwatcher.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ progress#mod_ramwatcher_swapbar {
102102

103103
progress#mod_ramwatcher_swapbar::-webkit-progress-bar {
104104
background: rgba(var(--color_r), var(--color_g), var(--color_b), 0.4);
105-
height: .3vh;
105+
height: .25vh;
106106
position: relative;
107-
top: .35vh;
107+
top: .55vh;
108108
}
109109

110110
progress#mod_ramwatcher_swapbar::-webkit-progress-value {
111111
background: rgb(var(--color_r), var(--color_g), var(--color_b));
112-
height: .6vh;
112+
height: .4vh;
113113
transition: width .5s cubic-bezier(0.4, 0, 1, 1);
114114
position: relative;
115-
bottom: .15vh;
115+
bottom: .4vh;
116116
}
117117

118118
h3#mod_ramwatcher_swaptext {

src/classes/ramwatcher.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RAMwatcher {
1717
<div id="mod_ramwatcher_swapcontainer">
1818
<h1>SWAP</h1>
1919
<progress id="mod_ramwatcher_swapbar" max="100" value="0"></progress>
20-
<h3 id="mod_ramwatcher_swaptext">(0.0 GiB)</h3>
20+
<h3 id="mod_ramwatcher_swaptext">0.0 GiB</h3>
2121
</div>
2222
</div>`;
2323

@@ -69,7 +69,7 @@ class RAMwatcher {
6969
document.getElementById("mod_ramwatcher_swapbar").value = usedSwap;
7070

7171
let usedSwapGiB = Math.round((data.swapused/1073742000)*10)/10;
72-
document.getElementById("mod_ramwatcher_swaptext").innerText = `(${usedSwapGiB} GiB)`;
72+
document.getElementById("mod_ramwatcher_swaptext").innerText = `${usedSwapGiB} GiB`;
7373
});
7474
}
7575
shuffleArray(array) {

0 commit comments

Comments
 (0)