aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-06-09 15:12:58 -0500
committerGitHub <noreply@github.com>2024-06-09 15:12:58 -0500
commit74b1f17115878f13a04f5f3fa42d95c68fc77862 (patch)
treedd7cc22f2c763189272ac87086c04157aa72d6ad /src/web
parent4d7c35b828327cf4b494bbb5170086dc6d1418a4 (diff)
parent8bc844df40f80d2c20df6f6033eed87f5a48672d (diff)
downloadslskd-74b1f17115878f13a04f5f3fa42d95c68fc77862.tar.gz
Merge pull request #1148 from slskd/ui-height
Fix content height issue in UI causing vertical scrollbar to appear when it shouldn't; fix issue with room screen
Diffstat (limited to 'src/web')
-rw-r--r--src/web/.eslintignore1
-rw-r--r--src/web/src/components/App.css7
-rw-r--r--src/web/src/components/Browse/Browse.css2
-rw-r--r--src/web/src/components/Chat/Chat.css2
-rw-r--r--src/web/src/components/Rooms/Rooms.css2
-rw-r--r--src/web/src/components/Rooms/Rooms.jsx2
-rw-r--r--src/web/src/components/Search/Search.css2
-rw-r--r--src/web/src/components/System/System.css2
-rw-r--r--src/web/src/components/Users/Users.css2
9 files changed, 12 insertions, 10 deletions
diff --git a/src/web/.eslintignore b/src/web/.eslintignore
new file mode 100644
index 00000000..23188627
--- /dev/null
+++ b/src/web/.eslintignore
@@ -0,0 +1 @@
+*.css \ No newline at end of file
diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css
index 1de44557..054fe1c4 100644
--- a/src/web/src/components/App.css
+++ b/src/web/src/components/App.css
@@ -121,6 +121,7 @@ body {
}
.pushable > .pusher.app-content {
+ min-height: calc(100% - 71px);
background: var(--background-color);
}
@@ -139,7 +140,7 @@ body {
}
.result-card:last-child, .transfer-card:last-child, .search-list-card:last-child {
- margin-bottom: 17px !important;
+ margin-bottom: 16px !important;
}
.result-meta {
@@ -186,7 +187,7 @@ body {
.showmore-button {
padding: 20px !important;
max-width: 1200px !important;
- margin-bottom: 17px !important;
+ margin-bottom: 16px !important;
}
.login-button {
@@ -245,7 +246,7 @@ body {
}
.view:last-child {
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
/* https://github.com/Semantic-Org/Semantic-UI-React/issues/3133#issuecomment-418766748 */
diff --git a/src/web/src/components/Browse/Browse.css b/src/web/src/components/Browse/Browse.css
index d7d4ef8e..b7363592 100644
--- a/src/web/src/components/Browse/Browse.css
+++ b/src/web/src/components/Browse/Browse.css
@@ -71,7 +71,7 @@
}
.browse-container:last-child {
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
.browse-meta {
diff --git a/src/web/src/components/Chat/Chat.css b/src/web/src/components/Chat/Chat.css
index 92aea58c..15e4b7b6 100644
--- a/src/web/src/components/Chat/Chat.css
+++ b/src/web/src/components/Chat/Chat.css
@@ -25,7 +25,7 @@
max-width: 1200px !important;
margin-left: auto !important;
margin-right: auto !important;
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
.chat-segment {
diff --git a/src/web/src/components/Rooms/Rooms.css b/src/web/src/components/Rooms/Rooms.css
index 961d7e00..e001d6ea 100644
--- a/src/web/src/components/Rooms/Rooms.css
+++ b/src/web/src/components/Rooms/Rooms.css
@@ -4,7 +4,7 @@
max-width: 1200px !important;
margin-left: auto !important;
margin-right: auto !important;
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
.rooms-segment {
diff --git a/src/web/src/components/Rooms/Rooms.jsx b/src/web/src/components/Rooms/Rooms.jsx
index 002ecde3..54e67d3c 100644
--- a/src/web/src/components/Rooms/Rooms.jsx
+++ b/src/web/src/components/Rooms/Rooms.jsx
@@ -195,7 +195,7 @@ class Rooms extends Component {
onRoomChange={(name) => this.selectRoom(name)}
/>
</Segment>
- {active == null ? (
+ {active?.length === 0 ? (
<PlaceholderSegment
caption="No rooms to display"
icon="comments"
diff --git a/src/web/src/components/Search/Search.css b/src/web/src/components/Search/Search.css
index 817d87b9..a73542f4 100644
--- a/src/web/src/components/Search/Search.css
+++ b/src/web/src/components/Search/Search.css
@@ -7,7 +7,7 @@
}
.search-container:last-child {
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
.search-segment {
diff --git a/src/web/src/components/System/System.css b/src/web/src/components/System/System.css
index 80642687..ded0449a 100644
--- a/src/web/src/components/System/System.css
+++ b/src/web/src/components/System/System.css
@@ -5,7 +5,7 @@
margin-left: auto !important;
margin-right: auto !important;
margin-top: 15px !important;
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
.logs-table {
diff --git a/src/web/src/components/Users/Users.css b/src/web/src/components/Users/Users.css
index c9244834..1335a1c7 100644
--- a/src/web/src/components/Users/Users.css
+++ b/src/web/src/components/Users/Users.css
@@ -7,7 +7,7 @@
}
.users-container:last-child {
- margin-bottom: 17px;
+ margin-bottom: 16px;
}
.users-segment {