mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
Refactor VolumeBar component styles for improved clarity and consistency
- Updated CSS classes in the VolumeBar component to enhance visual consistency and clarity. - Simplified hover effects and adjusted background styles for unique and duplicate byte displays. - Improved comments for better understanding of the visual elements in the component.
This commit is contained in:
parent
124ee9bdb0
commit
4d9dfbd922
@ -230,7 +230,7 @@ function VolumeBar({ volume, index }: VolumeBarProps) {
|
||||
initial={{ opacity: 0, y: 10 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: index * 0.05 }}
|
||||
className="group p-4 hover:bg-app-selected/50 rounded-lg transition-all cursor-pointer border border-transparent hover:border-app-line"
|
||||
className="p-4 rounded-lg border border-transparent"
|
||||
>
|
||||
<div className="flex items-start gap-4">
|
||||
<img
|
||||
@ -275,9 +275,9 @@ function VolumeBar({ volume, index }: VolumeBarProps) {
|
||||
|
||||
{/* Windows-style thick capacity bar */}
|
||||
<div className="mb-3">
|
||||
<div className="h-8 bg-app-darkBox rounded-md overflow-hidden border border-app-line shadow-inner">
|
||||
<div className="h-8 bg-app rounded-md overflow-hidden border border-app-line">
|
||||
<div className="h-full flex">
|
||||
{/* Unique bytes - solid blue */}
|
||||
{/* Unique bytes */}
|
||||
<motion.div
|
||||
initial={{ width: 0 }}
|
||||
animate={{ width: `${uniquePercent}%` }}
|
||||
@ -286,10 +286,10 @@ function VolumeBar({ volume, index }: VolumeBarProps) {
|
||||
ease: "easeOut",
|
||||
delay: index * 0.05,
|
||||
}}
|
||||
className="bg-gradient-to-b from-blue-500 to-blue-600 border-r border-blue-400/30"
|
||||
className="bg-accent border-r border-accent-deep"
|
||||
title={`Unique: ${formatBytes(uniqueBytes)}`}
|
||||
/>
|
||||
{/* Duplicate bytes - striped pattern */}
|
||||
{/* Duplicate bytes - lighter with stripes */}
|
||||
<motion.div
|
||||
initial={{ width: 0 }}
|
||||
animate={{ width: `${duplicatePercent}%` }}
|
||||
@ -298,7 +298,7 @@ function VolumeBar({ volume, index }: VolumeBarProps) {
|
||||
ease: "easeOut",
|
||||
delay: index * 0.05 + 0.2,
|
||||
}}
|
||||
className="bg-gradient-to-b from-blue-400 to-blue-500 relative overflow-hidden"
|
||||
className="bg-accent/60 relative overflow-hidden"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.1) 4px, rgba(255,255,255,0.1) 8px)",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user