Этот коммит содержится в:
Constantin Rusu 2025-05-08 10:36:33 +01:00
родитель 4718a72ca9
Коммит b6262dc20f
3 изменённых файлов: 31 добавлений и 21 удалений

Просмотреть файл

@ -175,26 +175,6 @@
display: none;
}
/* Custom scrollbar for WebKit browsers */
.memo-body::-webkit-scrollbar {
width: 6px;
}
.memo-body::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: 3px;
}
.memo-body::-webkit-scrollbar-thumb {
background-color: rgba(234, 179, 8, 0.3);
border-radius: 3px;
}
/* Show scrollbar on hover */
.memo-body:hover::-webkit-scrollbar-thumb {
background-color: rgba(234, 179, 8, 0.5);
}
/* Remove the old gradient and padding styles */
.memo-body p {
margin-bottom: 1.5rem;

Просмотреть файл

@ -40,7 +40,7 @@ const DialogContent = React.forwardRef<
ref={ref}
className={cn(
"fixed left-[50%] top-[50%] z-50 flex flex-col w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2 sm:rounded-lg",
"max-h-[85vh] overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-transparent",
"max-h-[85vh] overflow-y-auto",
className
)}
{...props}

Просмотреть файл

@ -97,6 +97,36 @@
}
}
/* Custom scrollbar styles */
@layer utilities {
/* For WebKit browsers (Chrome, Safari, newer versions of Opera) */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.3);
border-radius: 3px;
}
::-webkit-scrollbar-thumb {
background-color: rgba(234, 179, 8, 0.3);
border-radius: 3px;
transition: background-color 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(234, 179, 8, 0.6);
}
/* For Firefox */
* {
scrollbar-width: thin;
scrollbar-color: rgba(234, 179, 8, 0.3) rgba(0, 0, 0, 0.3);
}
}
/* Custom utility classes */
.shadow-glow {
box-shadow: 0 0 15px rgba(234, 179, 8, 0.3),