From edc09da8dfb45e07148d5c6892b0ed60e7787d95 Mon Sep 17 00:00:00 2001 From: X4Lo Date: Sat, 15 Feb 2025 22:46:03 +0100 Subject: [PATCH] fix add to collection modal ui --- .../user-collections-modal.component.css | 33 ++++++++++------- .../user-collections-modal.component.html | 36 ++++++++----------- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.css b/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.css index 00e957a..5294c51 100644 --- a/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.css +++ b/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.css @@ -1,6 +1,3 @@ -.modal-content { - padding: 20px 20px 0 20px; -} .modal-body { padding-right: 5px; @@ -18,19 +15,29 @@ .simplebar-content-wrapper { padding-right: 10px; -} - -.simplebar-content-wrapper { - max-height: 300px; + padding-top: 0; + max-height: 350px; overflow-y: auto; } -.user-lists { - height: 100%; - background-color: var(--bs-body-bg) !important; - border-right: 1px solid var(--bs-border-color); +.card-body { + display: flex; + flex-direction: column; + height: auto; + min-height: 50vh; /* Ensures the modal keeps a proper format */ + max-height: 90vh; /* Prevents it from growing too large */ } -.user-lists .btn { - color: var(--bs-border-color); +.modal-body { + flex-grow: 1; + overflow-y: auto; + min-height: 150px; /* Prevents collapsing when empty */ + max-height: calc(90vh - 150px); /* Prevents unnecessary scroll */ } + +.footer-actions { + display: flex; + justify-content: flex-end; /* Moves button to the right */ + background: white; +} + diff --git a/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.html b/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.html index 7304248..f14c2e3 100644 --- a/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.html +++ b/frontend/src/app/shared/components/modals/list-selection-modal/user-collections-modal.component.html @@ -1,38 +1,30 @@ -
+
-
-