Skip to content

Commit a7b3c4f

Browse files
committed
style: Simplify loading overlay display in dashboard.html and add optional Alpine.js script in layout.html
1 parent e0fb2b1 commit a7b3c4f

2 files changed

Lines changed: 4 additions & 32 deletions

File tree

ui/templates/dashboard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
<!-- Request Detail Placeholder/Content -->
9595
<div id="request-detail" class="flex-1 overflow-hidden flex flex-col relative transition-opacity duration-150">
96-
<!-- Loading overlay (CSS-only, no Vue transition) -->
96+
<!-- Loading overlay -->
9797
<div id="loading-overlay" class="absolute inset-0 bg-slate-950/80 backdrop-blur-sm z-10 flex items-center justify-center opacity-0 pointer-events-none transition-opacity duration-200" style="display: none;">
9898
<div class="text-center">
9999
<div class="w-8 h-8 border-2 border-brand-500 border-t-transparent rounded-full animate-spin mx-auto mb-2"></div>
@@ -539,7 +539,7 @@
539539
// End Request Detail Functions
540540
// ============================================
541541

542-
// Apply colors to request items and dropdown after Vue is mounted
542+
// Apply colors to request items and dropdown on page load
543543
function applyEndpointColors() {
544544
document.querySelectorAll("[data-endpoint-id]").forEach(el => {
545545
const endpointId = el.getAttribute("data-endpoint-id");

ui/templates/layout.html

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>PipeHooks</title>
88
<link rel="icon" type="image/svg+xml" href="/static/pipehook.svg">
9-
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
9+
<!-- Alpine.js for lightweight interactivity (optional, add if needed) -->
10+
<!-- <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script> -->
1011
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
1112
<script src="https://unpkg.com/htmx.org@1.9.10/dist/ext/sse.js"></script>
1213
<script src="https://cdn.tailwindcss.com"></script>
@@ -26,35 +27,6 @@
2627
.fade-in {
2728
animation: fadeIn 0.2s ease-in-out;
2829
}
29-
/* Vue transitions */
30-
.fade-enter-active, .fade-leave-active {
31-
transition: opacity 0.2s ease-in-out;
32-
}
33-
.fade-enter-from, .fade-leave-to {
34-
opacity: 0;
35-
}
36-
.dropdown-enter-active, .dropdown-leave-active {
37-
transition: all 0.2s ease-out;
38-
}
39-
.dropdown-enter-from {
40-
opacity: 0;
41-
transform: translateY(-10px) scale(0.95);
42-
}
43-
.dropdown-leave-to {
44-
opacity: 0;
45-
transform: translateY(-10px) scale(0.95);
46-
}
47-
.slide-enter-active, .slide-leave-active {
48-
transition: all 0.3s ease;
49-
}
50-
.slide-enter-from {
51-
opacity: 0;
52-
transform: translateX(-20px);
53-
}
54-
.slide-leave-to {
55-
opacity: 0;
56-
transform: translateX(20px);
57-
}
5830
</style>
5931
<script>
6032
tailwind.config = {

0 commit comments

Comments
 (0)