aboutsummaryrefslogtreecommitdiff
path: root/src/app/browser.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-04-24 03:05:53 +0200
committer0neGal <mail@0negal.com>2022-04-24 03:07:48 +0200
commitc8fcc96cae62a8bb7c4374fc1c5889aa5466b701 (patch)
tree438975f3559b417d073c0bf245ae0f8288d46934 /src/app/browser.js
parent66162ef4d101ad54badc804893c15739a252a71b (diff)
downloadViper-c8fcc96cae62a8bb7c4374fc1c5889aa5466b701.tar.gz
Viper-c8fcc96cae62a8bb7c4374fc1c5889aa5466b701.zip
tiny improvements to the look of the mod browser
Veeeerrryyy tiny improvements: - titles are now in bold - reduced the padding between version and author text - slight blur to images has been added, which looks nice - the large margin between the close and filter button is now fixed
Diffstat (limited to 'src/app/browser.js')
-rw-r--r--src/app/browser.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index 40670bc..ba20656 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -53,7 +53,7 @@ var Browser = {
let spacing = parseInt(getComputedStyle(filters).getPropertyValue("--spacing"));
filters.style.top = filterRect.bottom - spacing;
- filters.style.right = filterRect.right - filterRect.left + filterRect.width;
+ filters.style.right = filterRect.right - filterRect.left + filterRect.width - (spacing / 2);
},
},
toggle: (state) => {
@@ -235,6 +235,7 @@ function BrowserEl(properties) {
<div class="el" id="mod-${normalize(properties.title)}">
<div class="image">
<img src="${properties.image}">
+ <img class="blur" src="${properties.image}">
</div>
<div class="text">
<div class="title">${properties.title}</div>