mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2025-12-06 03:55:37 -05:00
Change "Manage DLCs" button to be icon only
This commit is contained in:
@@ -2,6 +2,7 @@ import { useState, useEffect } from 'react'
|
|||||||
import { findBestGameImage } from '@/services/ImageService'
|
import { findBestGameImage } from '@/services/ImageService'
|
||||||
import { Game } from '@/types'
|
import { Game } from '@/types'
|
||||||
import { ActionButton, ActionType, Button } from '@/components/buttons'
|
import { ActionButton, ActionType, Button } from '@/components/buttons'
|
||||||
|
import { Icon } from '@/components/icons'
|
||||||
|
|
||||||
interface GameItemProps {
|
interface GameItemProps {
|
||||||
game: Game
|
game: Game
|
||||||
@@ -150,9 +151,9 @@ const GameItem = ({ game, onAction, onEdit }: GameItemProps) => {
|
|||||||
onClick={handleEdit}
|
onClick={handleEdit}
|
||||||
disabled={!game.cream_installed || !!game.installing}
|
disabled={!game.cream_installed || !!game.installing}
|
||||||
title="Manage DLCs"
|
title="Manage DLCs"
|
||||||
className="edit-button"
|
className="edit-button settings-icon-button"
|
||||||
>
|
>
|
||||||
Manage DLCs
|
<Icon name="Settings" size="md" />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -96,6 +96,17 @@
|
|||||||
transform: none;
|
transform: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Settings icon button variant
|
||||||
|
&.settings-icon-button {
|
||||||
|
svg {
|
||||||
|
transition: transform var(--duration-normal) var(--easing-ease-out);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover svg {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Animation for loading state
|
// Animation for loading state
|
||||||
|
|||||||
Reference in New Issue
Block a user