From 3c8f8546cc407988c7cc7a9234c57d5911202f11 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Mon, 7 Apr 2025 18:53:42 +0200 Subject: [PATCH] Refactor "Currently Building" component for improved clarity Simplified template structure and improved readability by consolidating conditional rendering logic. Added an expandable queue view and a message for empty queues, enhancing the UI/UX. Introduced reusable styles for circular indicators. --- frontend/src/components/CurrentlyBuilding.vue | 114 +++++++++++++----- 1 file changed, 82 insertions(+), 32 deletions(-) diff --git a/frontend/src/components/CurrentlyBuilding.vue b/frontend/src/components/CurrentlyBuilding.vue index f02cb4a..c5993c3 100644 --- a/frontend/src/components/CurrentlyBuilding.vue +++ b/frontend/src/components/CurrentlyBuilding.vue @@ -7,21 +7,20 @@ variant="elevated"> - - -
- Building - - -
- Idle + + +
+ + {{ packageCount.building > 0 ? 'Building' : 'Idle' }} + - + Last updated @@ -48,7 +47,7 @@ + class="d-flex flex-column"> Building @@ -64,24 +63,63 @@ Queued - - - {{ pkg.pkgbase }} ({{ pkg.repo }}) - - {{ pkg.arch_version }} - - - - + - {{ packageCount.queued - packageCount.building }} - morein queue - - + + + + + + @@ -259,6 +297,18 @@ onMounted(() => { animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; } +.circle-offset { + transform: translateY(10px); /* Preserves vertical shift as needed */ +} + +.flex-circle { + flex-shrink: 0; /* Prevents shrinking */ + flex-grow: 0; /* Prevents growing */ + width: 12px; /* Ensures consistent dimensions */ + height: 12px; + border-radius: 50%; /* Maintains circular appearance */ +} + @-webkit-keyframes pulse-ring { 0% { transform: scale(0.33);