fix: smaller quick action buttons on smaller screens

This commit is contained in:
TrèsAbhi committed 2024-06-03 13:45:44 -05:00
1 parent 433621b384
commit d679641c9d
1 file changed
+24 -9
@@ -93,7 +93,10 @@ export function Options() {
color={thisShell.id === antagonistShell.id ? undefined : 'gray'} color={thisShell.id === antagonistShell.id ? undefined : 'gray'}
variant="soft" variant="soft"
key={thisShell.id} key={thisShell.id}
size="3" size={{
initial: '2',
sm: '3',
}}
style={{ style={{
borderTopLeftRadius: shellIndex === 0 ? undefined : 0, borderTopLeftRadius: shellIndex === 0 ? undefined : 0,
borderTopRightRadius: shellIndex === 0 ? undefined : 0, borderTopRightRadius: shellIndex === 0 ? undefined : 0,
@@ -118,9 +121,11 @@ export function Options() {
> >
<img <img
alt={thisShell.name} alt={thisShell.name}
width={20}
height={20}
src={asset(`icons/shells/${thisShell.icon}.webp`)} src={asset(`icons/shells/${thisShell.icon}.webp`)}
style={{
width: '50%',
height: '50%',
}}
/> />
</IconButton> </IconButton>
))} ))}
@@ -134,7 +139,10 @@ export function Options() {
borderBottomRightRadius: 0, borderBottomRightRadius: 0,
borderBottomLeftRadius: 0, borderBottomLeftRadius: 0,
}} }}
size="3" size={{
initial: '2',
sm: '3',
}}
onClick={() => { onClick={() => {
mutateDuel((draft) => { mutateDuel((draft) => {
draft.antagonist!.equipmentMatrix[0][0] = hasCalibratedShells draft.antagonist!.equipmentMatrix[0][0] = hasCalibratedShells
@@ -148,15 +156,20 @@ export function Options() {
> >
<img <img
alt="Calibrated Shells" alt="Calibrated Shells"
width={20}
height={20}
src={asset('icons/equipment/103.webp')} src={asset('icons/equipment/103.webp')}
style={{
width: '50%',
height: '50%',
}}
/> />
</IconButton> </IconButton>
<IconButton <IconButton
color={hasEnhancedArmor ? undefined : 'gray'} color={hasEnhancedArmor ? undefined : 'gray'}
variant="soft" variant="soft"
size="3" size={{
initial: '2',
sm: '3',
}}
style={{ style={{
borderTopRightRadius: 0, borderTopRightRadius: 0,
borderTopLeftRadius: 0, borderTopLeftRadius: 0,
@@ -175,9 +188,11 @@ export function Options() {
> >
<img <img
alt="Enhanced Armor" alt="Enhanced Armor"
width={20}
height={20}
src={asset('icons/equipment/110.webp')} src={asset('icons/equipment/110.webp')}
style={{
width: '50%',
height: '50%',
}}
/> />
</IconButton> </IconButton>
</Flex> </Flex>