diff --git a/CHANGELOG.md b/CHANGELOG.md index 040c7dd..fe82356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Clicking red dot shows error details in a modal (#107) - Source name column no longer wraps text for better table layout (#107) - Renamed "Cache Management" page to "Upstream Sources" (#107) +- Moved Delete button from table row to edit modal for cleaner table layout (#107) ### Removed - Removed `is_public` field from upstream sources - all sources are now treated as internal/private (#107) diff --git a/frontend/src/pages/AdminCachePage.css b/frontend/src/pages/AdminCachePage.css index 25b8483..50598db 100644 --- a/frontend/src/pages/AdminCachePage.css +++ b/frontend/src/pages/AdminCachePage.css @@ -340,9 +340,14 @@ .form-actions { display: flex; - justify-content: flex-end; - gap: 0.5rem; + justify-content: space-between; + align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); } + +.form-actions-right { + display: flex; + gap: 0.5rem; +} diff --git a/frontend/src/pages/AdminCachePage.tsx b/frontend/src/pages/AdminCachePage.tsx index 118c52c..5e1fbb0 100644 --- a/frontend/src/pages/AdminCachePage.tsx +++ b/frontend/src/pages/AdminCachePage.tsx @@ -324,18 +324,9 @@ function AdminCachePage() { Test {source.source !== 'env' && ( - <> - - - > + )} @@ -471,12 +462,27 @@ function AdminCachePage() { )}