Skip to content

Commit 1c737e9

Browse files
committed
configurations: joystick: resize profile buttons to fit a 4th item
Signed-off-by: Arturo Manzoli <[email protected]>
1 parent 25b9b76 commit 1c737e9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/views/ConfigurationJoystickView.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<template #title>Joystick configuration </template>
44
<template #content>
55
<div
6-
:class="interfaceStore.isOnSmallScreen ? 'max-w-[88vw] max-h-[95vh]' : 'max-w-[880px] max-h-[80vh]'"
6+
:class="interfaceStore.isOnSmallScreen ? 'max-w-[88vw] max-h-[95vh]' : 'max-w-[910px] max-h-[80vh]'"
77
class="overflow-y-auto"
88
>
99
<div
@@ -44,8 +44,8 @@
4444
</div>
4545
</template>
4646
<template #content>
47-
<div class="flex flex-col items-center h-[225px] overflow-hidden">
48-
<div class="flex flex-col items-center">
47+
<div class="flex flex-col items-center h-[225px] overflow-visible">
48+
<div class="flex flex-col w-full items-center">
4949
<div
5050
v-if="
5151
controllerStore.availableButtonActions.every((b) => b.protocol === JoystickProtocol.CockpitAction)
@@ -79,23 +79,23 @@
7979
class="scale-[85%] -mb-4"
8080
/>
8181
</div>
82-
<div class="flex w-full justify-center mb-2">
82+
<div class="w-full overflow-x-auto overflow-y-hidden px-2 whitespace-nowrap">
8383
<div
8484
v-for="functionMapping in controllerStore.protocolMappings"
8585
:key="functionMapping.name"
86-
class="relative mx-2"
86+
class="relative inline-block align-top mx-1"
8787
>
8888
<!-- Container for active profile -->
8989
<div
9090
v-if="activeProfileName === functionMapping.name"
9191
class="flex flex-col items-center bg-[#FFFFFF15] rounded-lg p-2 border border-[#FFFFFF30]"
9292
>
9393
<v-btn
94-
class="text-md bg-[#FFFFFF23]"
94+
class="text-md bg-[#FFFFFF23] px-2"
9595
size="small"
9696
:class="{
9797
'bg-[#FFFFFF43]': selectedProfile.name === functionMapping.name,
98-
'text-sm': interfaceStore.isOnSmallScreen,
98+
'text-xs': interfaceStore.isOnSmallScreen,
9999
}"
100100
@click="selectProfile(functionMapping)"
101101
>
@@ -107,7 +107,7 @@
107107
<!-- Regular profile button -->
108108
<div v-else class="relative mt-2">
109109
<v-btn
110-
class="text-[13px] bg-[#FFFFFF23] px-2"
110+
class="text-[12px] bg-[#FFFFFF23] px-2"
111111
:class="{
112112
'bg-[#FFFFFF43]': selectedProfile.name === functionMapping.name,
113113
'text-sm': interfaceStore.isOnSmallScreen,
@@ -122,7 +122,7 @@
122122
v-if="selectedProfile.name === functionMapping.name && isSelectedProfileDifferentFromActive"
123123
icon
124124
size="x-small"
125-
class="absolute top-3 -right-3 text-white bg-[#51565B] rounded-full"
125+
class="absolute top-3 -right-2 text-white bg-[#51565B] rounded-full"
126126
@click.stop="switchToSelectedProfile"
127127
>
128128
<v-icon size="14">mdi-swap-horizontal</v-icon>

0 commit comments

Comments
 (0)