Refactor dialog components and styles for improved UI consistency
ci / build-backend (push) Successful in 2m34s
ci / build-frontend (push) Successful in 1m5s
ci / tests (push) Successful in 2m25s
ci / sonar (push) Successful in 6m4s

Updated the dialog components to use a unified class name, replacing 'crt-panel' with 'crt-dialog' for better clarity and consistency across the application. Enhanced the dialog overlay with a denser background and blur effect to improve readability against underlying content. Additionally, modified the UploadSnackbar and ShowsPanel to reflect these changes, ensuring a cohesive user experience.
This commit is contained in:
Leonid Pershin
2026-07-28 00:39:36 +03:00
parent 9f86016a2c
commit e0b85807df
5 changed files with 20 additions and 5 deletions
@@ -48,7 +48,7 @@ export function UploadSnackbar() {
else header = t('admin.media.uploadedCount', { count: done })
return (
<div className="crt-panel fixed bottom-4 right-4 z-50 w-96 max-w-[calc(100vw-2rem)] rounded-md shadow-lg">
<div className="crt-dialog fixed bottom-4 right-4 z-50 w-96 max-w-[calc(100vw-2rem)] rounded-md">
<div className="flex items-center gap-2 border-b border-border px-3 py-2 text-sm">
<span className="truncate font-medium">{header}</span>
{hasItems && (
@@ -359,7 +359,7 @@ function GenreCell({ primary, others }: Readonly<{ primary: string | null; other
</button>
{at && (
<div
className="crt-panel fixed z-50 max-w-56 rounded-md border border-border bg-background px-2 py-1.5 text-xs"
className="crt-popover fixed z-50 max-w-56 rounded-md px-2 py-1.5 text-xs"
style={{ left: at.left, top: at.top }}
>
<p className="mb-1 text-[10px] uppercase tracking-wide text-muted-foreground">