From cb0437c98b9549fa5ceda4923f5a136f44a2d006 Mon Sep 17 00:00:00 2001 From: jedi Date: Sun, 6 Sep 2026 05:22:56 +0200 Subject: [PATCH 1/2] stash --- frontend/src/scss/_card.scss | 11 ++++++ frontend/src/scss/_masonry.scss | 35 ++++++++++++++++ frontend/src/scss/toolshed.scss | 1 + frontend/src/views/Files.vue | 46 +-------------------- frontend/src/views/Inventory.vue | 53 ++----------------------- frontend/src/views/Search.vue | 68 ++++++++++++++++++++++++-------- 6 files changed, 103 insertions(+), 111 deletions(-) create mode 100644 frontend/src/scss/_masonry.scss diff --git a/frontend/src/scss/_card.scss b/frontend/src/scss/_card.scss index 45c5794..bc5cd63 100644 --- a/frontend/src/scss/_card.scss +++ b/frontend/src/scss/_card.scss @@ -56,4 +56,15 @@ padding-left: 1.25rem; } } +} + +.img-preview-fixed { + height: 160px; + object-fit: cover; +} + +.img-preview-fluid { + width: 100%; + height: auto; + object-fit: cover; } \ No newline at end of file diff --git a/frontend/src/scss/_masonry.scss b/frontend/src/scss/_masonry.scss new file mode 100644 index 0000000..0425047 --- /dev/null +++ b/frontend/src/scss/_masonry.scss @@ -0,0 +1,35 @@ +// Shared by any view rendering a Pinterest-style image grid (Inventory.vue, +// Search.vue, Files.vue) - keeps their column counts and breakpoints in sync. +.masonry-grid { + column-count: 2; + column-gap: 1rem; +} + +.masonry-item { + break-inside: avoid; + margin-bottom: 1rem; +} + +@include media-breakpoint-up(md) { + .masonry-grid { + column-count: 3; + } +} + +@include media-breakpoint-up(lg) { + .masonry-grid { + column-count: 4; + } +} + +@include media-breakpoint-up(xl) { + .masonry-grid { + column-count: 6; + } +} + +@include media-breakpoint-up(xxl) { + .masonry-grid { + column-count: 12; + } +} diff --git a/frontend/src/scss/toolshed.scss b/frontend/src/scss/toolshed.scss index 5a41d97..0a4d36d 100644 --- a/frontend/src/scss/toolshed.scss +++ b/frontend/src/scss/toolshed.scss @@ -95,6 +95,7 @@ $body-color: $gray-700; @import "tags"; @import "dropdown"; @import "label-fonts"; +@import "masonry"; #root, body, html { height: 100%; diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index 7668656..307bf53 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -12,7 +12,7 @@
+ class="img-preview-fluid"/>
@@ -72,51 +72,9 @@ export default { } - \ No newline at end of file diff --git a/frontend/src/views/Inventory.vue b/frontend/src/views/Inventory.vue index f8f35a7..5445d21 100644 --- a/frontend/src/views/Inventory.vue +++ b/frontend/src/views/Inventory.vue @@ -83,7 +83,7 @@ + class="card-img-top img-preview-fluid"/>
@@ -127,7 +127,7 @@ + class="card-img-top img-preview-fixed"/>
@@ -299,58 +299,11 @@ export default { } - \ No newline at end of file From b489b56e6af03833337ff1858f9963085a5bed5e Mon Sep 17 00:00:00 2001 From: jedi Date: Sun, 6 Sep 2026 11:50:11 +0200 Subject: [PATCH 2/2] stash --- frontend/src/components/TreeView.vue | 5 +- .../workflows/BulkItemImportWorkflow.vue | 88 ++++++++++--------- frontend/src/scss/_card.scss | 4 + frontend/src/scss/_forms.scss | 8 ++ frontend/src/views/Inventory.vue | 4 - frontend/src/views/Pairing.vue | 8 -- frontend/src/views/Register.vue | 8 -- frontend/src/views/StorageLocation.vue | 5 -- 8 files changed, 60 insertions(+), 70 deletions(-) diff --git a/frontend/src/components/TreeView.vue b/frontend/src/components/TreeView.vue index 0a78484..bb7595b 100644 --- a/frontend/src/components/TreeView.vue +++ b/frontend/src/components/TreeView.vue @@ -8,7 +8,7 @@ -
+
@@ -64,9 +64,6 @@ .tree-view-content { flex: 1 1 auto; min-width: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; } diff --git a/frontend/src/components/workflow/workflows/BulkItemImportWorkflow.vue b/frontend/src/components/workflow/workflows/BulkItemImportWorkflow.vue index cb0d3c3..d3eb6ba 100644 --- a/frontend/src/components/workflow/workflows/BulkItemImportWorkflow.vue +++ b/frontend/src/components/workflow/workflows/BulkItemImportWorkflow.vue @@ -13,45 +13,40 @@
-
+ +
+ +
Upload Your Data File
+

+ Drag and drop your CSV or Excel file here, or click to browse +

- -
Upload Your Data File
-

- Drag and drop your CSV or Excel file here, or click to browse -

+ - +
+ + +
-
- - +
+ + Supported formats: CSV (.csv), Excel (.xlsx, .xls) + +
- -
- - Supported formats: CSV (.csv), Excel (.xlsx, .xls) - -
-
+
@@ -264,6 +259,7 @@