From 0fd8f61362403934550b360cbd65f1b41d66c870 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 3 Oct 2020 12:38:49 +0200 Subject: Fixed frontend --- mottovote/public/index.html | 39 ++++++++++++++++++++------------------- mottovote/public/style.css | 2 +- tables.sql | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/mottovote/public/index.html b/mottovote/public/index.html index 4e64cb8..0bffbdd 100644 --- a/mottovote/public/index.html +++ b/mottovote/public/index.html @@ -1,23 +1,24 @@ + + + + Motto Vote + + + - - - - Motto Vote - - - + +
+
+ +
- - -
-
- -
- - - - - \ No newline at end of file + + + diff --git a/mottovote/public/style.css b/mottovote/public/style.css index bf4eac7..6e735e3 100644 --- a/mottovote/public/style.css +++ b/mottovote/public/style.css @@ -12,7 +12,6 @@ main { display: flex; flex-flow: row wrap; position: absolute; - height: 40%; width: 50%; left: 50%; top: 50%; @@ -28,6 +27,7 @@ main { } #vote { + max-height: 80%; margin-bottom: 20px; overflow-y: scroll; width: 100%; diff --git a/tables.sql b/tables.sql index e630058..cd22626 100644 --- a/tables.sql +++ b/tables.sql @@ -80,7 +80,7 @@ CREATE TABLE IF NOT EXISTS mottos( id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL DEFAULT '', - + UNIQUE KEY main (name, description) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- cgit v1.2.3