From df9c3ac996f017f90cce42719798263bcbd72b83 Mon Sep 17 00:00:00 2001
From: Peter <42907716+MrShack@users.noreply.github.com>
Date: Sat, 12 Apr 2025 00:53:20 +0200
Subject: [PATCH] Punishment page styling
---
frontend/src/app/bans/bans.component.html | 1 +
frontend/src/app/bans/bans.component.scss | 22 ++++++----
.../app/bans/history/history.component.html | 42 ++++++++++---------
.../app/bans/history/history.component.scss | 34 +++++++++++++++
4 files changed, 73 insertions(+), 26 deletions(-)
diff --git a/frontend/src/app/bans/bans.component.html b/frontend/src/app/bans/bans.component.html
index 9dc2edd..e423cb0 100644
--- a/frontend/src/app/bans/bans.component.html
+++ b/frontend/src/app/bans/bans.component.html
@@ -18,6 +18,7 @@
diff --git a/frontend/src/app/bans/bans.component.scss b/frontend/src/app/bans/bans.component.scss
index b427337..6c7413a 100644
--- a/frontend/src/app/bans/bans.component.scss
+++ b/frontend/src/app/bans/bans.component.scss
@@ -3,12 +3,12 @@ main .container {
}
.container {
- max-width: 1200px;
+ max-width: 1300px;
}
.columnSection {
padding: 20px 0 20px 0;
- max-width: 1200px;
+ max-width: 1300px;
}
.historyTypeContainer {
@@ -22,15 +22,23 @@ main .container {
text-align: right;
}
-.historySearch {
+.button-outer {
+ margin-right: 15px;
+}
+.historySearch {
+ vertical-align: -15px;
+}
+
+.searchButton {
+ vertical-align: -15px;
}
.historyTable {
font-family: 'open-sans', sans-serif;
margin-bottom: 20px;
-}
-
-.button-outer {
- margin-right: 15px;
+ width: 100%;
+ text-align: center;
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
+ border-radius: 5px;
}
diff --git a/frontend/src/app/bans/history/history.component.html b/frontend/src/app/bans/history/history.component.html
index 2337bee..0a3de74 100644
--- a/frontend/src/app/bans/history/history.component.html
+++ b/frontend/src/app/bans/history/history.component.html
@@ -3,25 +3,29 @@
0">
-
-
-
- | Player |
- Banned By |
- Reason |
- Date |
- Expires |
-
-
-
-
- | {{ entry.username }} |
- {{ entry.punishedBy }} |
- {{ entry.reason }} |
- {{ getPunishmentTime(entry) }} |
- {{ getExpiredTime(entry) }} |
-
-
+
+
+
+
+ | Player |
+ Banned By |
+ Reason |
+ Date |
+ Expires |
+
+
+
+
+
+
+ | {{ entry.username }} |
+ {{ entry.punishedBy }} |
+ {{ entry.reason }} |
+ {{ getPunishmentTime(entry) }} |
+ {{ getExpiredTime(entry) }} |
+
+
+
diff --git a/frontend/src/app/bans/history/history.component.scss b/frontend/src/app/bans/history/history.component.scss
index e69de29..4c310f9 100644
--- a/frontend/src/app/bans/history/history.component.scss
+++ b/frontend/src/app/bans/history/history.component.scss
@@ -0,0 +1,34 @@
+table {
+ width: 100%;
+ table-layout: fixed;
+}
+
+thead {
+ height: 25px;
+ font-size: 1.1em;
+}
+
+tbody {
+ font-size: 0.9em;
+}
+
+td {
+ padding: 5px 0 5px 0;
+}
+
+th, td {
+ text-overflow: ellipsis;
+}
+
+.historyPlayer {
+ width: 200px;
+ text-overflow: clip;
+}
+
+.historyReason {
+ width: 940px;
+}
+
+.historyDate {
+ width: 160px;
+}