|
3 | 3 | <template #title>Joystick configuration </template> |
4 | 4 | <template #content> |
5 | 5 | <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]'" |
7 | 7 | class="overflow-y-auto" |
8 | 8 | > |
9 | 9 | <div |
|
44 | 44 | </div> |
45 | 45 | </template> |
46 | 46 | <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"> |
49 | 49 | <div |
50 | 50 | v-if=" |
51 | 51 | controllerStore.availableButtonActions.every((b) => b.protocol === JoystickProtocol.CockpitAction) |
|
79 | 79 | class="scale-[85%] -mb-4" |
80 | 80 | /> |
81 | 81 | </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"> |
83 | 83 | <div |
84 | 84 | v-for="functionMapping in controllerStore.protocolMappings" |
85 | 85 | :key="functionMapping.name" |
86 | | - class="relative mx-2" |
| 86 | + class="relative inline-block align-top mx-1" |
87 | 87 | > |
88 | 88 | <!-- Container for active profile --> |
89 | 89 | <div |
90 | 90 | v-if="activeProfileName === functionMapping.name" |
91 | 91 | class="flex flex-col items-center bg-[#FFFFFF15] rounded-lg p-2 border border-[#FFFFFF30]" |
92 | 92 | > |
93 | 93 | <v-btn |
94 | | - class="text-md bg-[#FFFFFF23]" |
| 94 | + class="text-md bg-[#FFFFFF23] px-2" |
95 | 95 | size="small" |
96 | 96 | :class="{ |
97 | 97 | 'bg-[#FFFFFF43]': selectedProfile.name === functionMapping.name, |
98 | | - 'text-sm': interfaceStore.isOnSmallScreen, |
| 98 | + 'text-xs': interfaceStore.isOnSmallScreen, |
99 | 99 | }" |
100 | 100 | @click="selectProfile(functionMapping)" |
101 | 101 | > |
|
107 | 107 | <!-- Regular profile button --> |
108 | 108 | <div v-else class="relative mt-2"> |
109 | 109 | <v-btn |
110 | | - class="text-[13px] bg-[#FFFFFF23] px-2" |
| 110 | + class="text-[12px] bg-[#FFFFFF23] px-2" |
111 | 111 | :class="{ |
112 | 112 | 'bg-[#FFFFFF43]': selectedProfile.name === functionMapping.name, |
113 | 113 | 'text-sm': interfaceStore.isOnSmallScreen, |
|
122 | 122 | v-if="selectedProfile.name === functionMapping.name && isSelectedProfileDifferentFromActive" |
123 | 123 | icon |
124 | 124 | 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" |
126 | 126 | @click.stop="switchToSelectedProfile" |
127 | 127 | > |
128 | 128 | <v-icon size="14">mdi-swap-horizontal</v-icon> |
|
0 commit comments