aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-05 19:04:11 +0100
committer0neGal <mail@0negal.com>2022-02-05 19:04:11 +0100
commitb69e72aa7df4df5770e3a305eac507ab1f20e96b (patch)
treec794a309ced18e48fe8c95b9dd11a6725e7227eb
parent392a46168971eb3a4d578cec2b8ebea533e02747 (diff)
downloadViper-b69e72aa7df4df5770e3a305eac507ab1f20e96b.tar.gz
Viper-b69e72aa7df4df5770e3a305eac507ab1f20e96b.zip
moved author position, and fixed text overflowing
-rw-r--r--src/app/browser.js3
-rw-r--r--src/app/main.css11
2 files changed, 13 insertions, 1 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index c23f217..5695661 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -145,9 +145,10 @@ function BrowserEl(properties) {
</div>
<div class="text">
<div class="title">${properties.title}</div>
- <div class="description">${properties.description} - ${lang("gui.browser.madeby")} ${properties.author}</div>
+ <div class="description">${properties.description}</div>
<button onclick="installFromURL('${properties.download}')">${installstr}</button>
<button class="visual">${properties.version}</button>
+ <button class="visual">${lang("gui.browser.madeby")} ${properties.author}</button>
</div>
</div>
`
diff --git a/src/app/main.css b/src/app/main.css
index b6a07eb..4f1ddc2 100644
--- a/src/app/main.css
+++ b/src/app/main.css
@@ -191,6 +191,17 @@ button {
border-radius: var(--spacing);
}
+#browser .el .text {
+ overflow: hidden;
+}
+
+#browser .el .title, #browser .el .description {
+ height: 1.2em;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
#browser .el .title {font-size: 1.2em}
#browser .el .description {font-size: 0.8em}
#browser .el button {