Pārlūkot izejas kodu

Fix bug report bubble overlapping toast notifications

  Move the toast container from bottom-4 to bottom-20 so toast
  notifications and upload progress stack above the bug report bubble
  instead of rendering on top of each other.
maziggy 2 mēneši atpakaļ
vecāks
revīzija
150eaffe1c

+ 1 - 0
CHANGELOG.md

@@ -11,6 +11,7 @@ All notable changes to Bambuddy will be documented in this file.
 - **Print Queue Scheduler Diagnostics** ([#616](https://github.com/maziggy/bambuddy/issues/616)) — Added diagnostic logging to the print queue scheduler to help diagnose why queued prints aren't starting. After each queue check, the scheduler now logs a skip summary (how many items were skipped due to manual_start, scheduled_time, etc.) and for each busy printer, logs the exact state preventing it from being considered idle (connected status, printer state, plate_cleared flag). Previously the scheduler only logged "found N pending items" with no visibility into why items were skipped.
 - **Print Queue Scheduler Diagnostics** ([#616](https://github.com/maziggy/bambuddy/issues/616)) — Added diagnostic logging to the print queue scheduler to help diagnose why queued prints aren't starting. After each queue check, the scheduler now logs a skip summary (how many items were skipped due to manual_start, scheduled_time, etc.) and for each busy printer, logs the exact state preventing it from being considered idle (connected status, printer state, plate_cleared flag). Previously the scheduler only logged "found N pending items" with no visibility into why items were skipped.
 
 
 ### Fixed
 ### Fixed
+- **Bug Report Bubble Overlapping Toasts** — Moved the bug report bubble into the toast container so it always sits at the bottom-right with toast notifications and upload progress stacking above it, instead of overlapping on top of each other.
 - **Windows: Server Shuts Down After 60 Seconds** ([#605](https://github.com/maziggy/bambuddy/issues/605)) — On Windows, terminating orphaned ffmpeg camera processes broadcast `CTRL_C_EVENT` to the entire process group, causing uvicorn to interpret it as a user-initiated shutdown. ffmpeg is now spawned in its own process group (`CREATE_NEW_PROCESS_GROUP`) so cleanup no longer affects the server. Reported by @Reactantvr.
 - **Windows: Server Shuts Down After 60 Seconds** ([#605](https://github.com/maziggy/bambuddy/issues/605)) — On Windows, terminating orphaned ffmpeg camera processes broadcast `CTRL_C_EVENT` to the entire process group, causing uvicorn to interpret it as a user-initiated shutdown. ffmpeg is now spawned in its own process group (`CREATE_NEW_PROCESS_GROUP`) so cleanup no longer affects the server. Reported by @Reactantvr.
 
 
 ## [0.2.2b1] - 2026-03-03
 ## [0.2.2b1] - 2026-03-03

+ 1 - 0
frontend/src/components/Layout.tsx

@@ -16,6 +16,7 @@ import { parseUTCDate } from '../utils/date';
 import { Button } from './Button';
 import { Button } from './Button';
 import { BugReportBubble } from './BugReportBubble';
 import { BugReportBubble } from './BugReportBubble';
 
 
+
 interface NavItem {
 interface NavItem {
   id: string;
   id: string;
   to: string;
   to: string;

+ 2 - 2
frontend/src/contexts/ToastContext.tsx

@@ -396,8 +396,8 @@ export function ToastProvider({ children }: { children: ReactNode }) {
     <ToastContext.Provider value={{ showToast, showPersistentToast, dismissToast }}>
     <ToastContext.Provider value={{ showToast, showPersistentToast, dismissToast }}>
       {children}
       {children}
 
 
-      {/* Toast Container */}
-      <div className="fixed bottom-4 right-4 z-50 flex flex-col gap-2">
+      {/* Toast Container — positioned above the bug-report bubble */}
+      <div className="fixed bottom-20 right-4 z-50 flex flex-col gap-2">
         {toasts.map((toast) => (
         {toasts.map((toast) => (
           <div
           <div
             key={toast.id}
             key={toast.id}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
static/assets/index-CGBueEai.js


+ 1 - 1
static/index.html

@@ -23,7 +23,7 @@
 
 
     <!-- Splash screens for iOS -->
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-DN71wENb.js"></script>
+    <script type="module" crossorigin src="/assets/index-CGBueEai.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-DOJtH8DG.css">
     <link rel="stylesheet" crossorigin href="/assets/index-DOJtH8DG.css">
   </head>
   </head>
   <body>
   <body>

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels