fix(music-player): fix floating icon position shift on hover
Problem: - Icon bergeser ke bawah saat hover - transform: 'scale(1.1)' mengganti transform: 'translateY(-80%)' - CSS transform property di-replace, bukan di-mix Solution: - Gabungkan kedua transform dalam satu string - Hover: 'translateY(-80%) scale(1.1)' - maintain posisi + scale - Leave: 'translateY(-80%)' - kembali ke posisi semula Changes: - onMouseEnter: transform = 'translateY(-80%) scale(1.1)' - onMouseLeave: transform = 'translateY(-80%)' - Added 'ease' timing function for smoother transition Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -113,7 +113,7 @@ export default function GrafikRealisasi({ apbdesData }: any) {
|
||||
<Summary title="📊 Pembiayaan" data={pembiayaan} />
|
||||
</Stack>
|
||||
|
||||
{/* Summary Total Keseluruhan */}
|
||||
{/* Summary Total Keseluruhan
|
||||
<Box p="md" bg="gray.0">
|
||||
<>
|
||||
<Group justify="space-between" mb="xs">
|
||||
@@ -132,7 +132,7 @@ export default function GrafikRealisasi({ apbdesData }: any) {
|
||||
color={persenSemua >= 100 ? 'teal' : persenSemua >= 80 ? 'blue' : 'red'}
|
||||
/>
|
||||
</>
|
||||
</Box>
|
||||
</Box> */}
|
||||
</Paper>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user