Skip to content

Commit

Permalink
Tweak the css a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperFKorban committed Apr 14, 2024
1 parent f28c8e6 commit 25cbb50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/main/scala/htmlgen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private[guinep] trait HtmlGen {
"""
body { font-family: Arial, sans-serif; }
.sidebar { position: fixed; left: 0; top: 0; width: 200px; height: 100vh; background-color: #f0f0f0; padding: 20px; overflow-y: auto; }
.sidebar a { display: block; padding: 10px; margin-bottom: 10px; background-color: #007bff; color: white; text-decoration: none; text-align: center; border-radius: 5px; }
.sidebar a { display: block; padding: 10px; margin-bottom: 10px; background-color: #007bff; color: white; text-decoration: none; text-align: center; border-radius: 5px; overflow-x: hidden; text-overflow: ellipsis; }
.sidebar a:hover { background-color: #0056b3; }
.main-content { margin-left: 232px; padding: 40px; display: flex; justify-content: center; padding-top: 20px; }
.form-container { width: 600px; }
Expand Down Expand Up @@ -196,7 +196,9 @@ private[guinep] trait HtmlGen {
const input = document.createElement('input');
input.type = formElem.type;
input.name = formElem.name;
input.value = formElem.value;
if (formElem.value) {
input.value = formElem.value;
}
input.id = formElem.name;
input.placeholder = formElem.name;
if (formElem.nullable) {
Expand Down

0 comments on commit 25cbb50

Please sign in to comment.