mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
refactor: Enhance UI layout and improve action button grouping in Excluded and FolderMappings components
This commit is contained in:
@@ -156,33 +156,35 @@ function addExclusion(type?: string, icon?: string, title?: string) {
|
||||
hide-default-footer
|
||||
>
|
||||
<template #header.actions>
|
||||
<v-tooltip bottom max-width="400">
|
||||
<template #activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
size="small"
|
||||
variant="text"
|
||||
icon="mdi-information-outline"
|
||||
/>
|
||||
</template>
|
||||
<div>
|
||||
<p>
|
||||
{{ t("settings.exclusions-tooltip") }}
|
||||
</p>
|
||||
</div>
|
||||
</v-tooltip>
|
||||
<v-btn
|
||||
v-if="
|
||||
authStore.scopes.includes('platforms.write') &&
|
||||
config.CONFIG_FILE_WRITABLE
|
||||
"
|
||||
prepend-icon="mdi-plus"
|
||||
variant="outlined"
|
||||
class="text-primary"
|
||||
@click="addExclusion()"
|
||||
>
|
||||
{{ t("common.add") }}
|
||||
</v-btn>
|
||||
<div class="d-flex align-center flex-nowrap justify-end">
|
||||
<v-tooltip bottom max-width="400">
|
||||
<template #activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
size="small"
|
||||
variant="text"
|
||||
icon="mdi-information-outline"
|
||||
/>
|
||||
</template>
|
||||
<div>
|
||||
<p>
|
||||
{{ t("settings.exclusions-tooltip") }}
|
||||
</p>
|
||||
</div>
|
||||
</v-tooltip>
|
||||
<v-btn
|
||||
v-if="
|
||||
authStore.scopes.includes('platforms.write') &&
|
||||
config.CONFIG_FILE_WRITABLE
|
||||
"
|
||||
prepend-icon="mdi-plus"
|
||||
variant="outlined"
|
||||
class="text-primary"
|
||||
@click="addExclusion()"
|
||||
>
|
||||
{{ t("common.add") }}
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
<template #item.type="{ item }">
|
||||
<v-list-item class="pa-0" min-width="240px">
|
||||
|
||||
@@ -149,38 +149,40 @@ function deleteMapping(row: Row) {
|
||||
hide-default-footer
|
||||
>
|
||||
<template #header.actions>
|
||||
<v-tooltip bottom max-width="500">
|
||||
<template #activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
size="small"
|
||||
variant="text"
|
||||
icon="mdi-information-outline"
|
||||
/>
|
||||
</template>
|
||||
<div>
|
||||
<p class="mb-2">
|
||||
<strong>{{ t("settings.folder-alias") }}:</strong>
|
||||
{{ t("settings.folder-mappings-tooltip-aliases") }}
|
||||
</p>
|
||||
<p>
|
||||
<strong>{{ t("settings.platform-variant") }}:</strong>
|
||||
{{ t("settings.folder-mappings-tooltip-variants") }}
|
||||
</p>
|
||||
<p class="text-caption mt-2">
|
||||
{{ t("settings.folder-mappings-mutually-exclusive") }}
|
||||
</p>
|
||||
</div>
|
||||
</v-tooltip>
|
||||
<v-btn
|
||||
v-if="authStore.scopes.includes('platforms.write')"
|
||||
prepend-icon="mdi-plus"
|
||||
variant="outlined"
|
||||
class="text-primary"
|
||||
@click="emitter?.emit('showCreateFolderMappingDialog', null)"
|
||||
>
|
||||
{{ t("common.add") }}
|
||||
</v-btn>
|
||||
<div class="d-flex align-center flex-nowrap justify-end">
|
||||
<v-tooltip bottom max-width="500">
|
||||
<template #activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
size="small"
|
||||
variant="text"
|
||||
icon="mdi-information-outline"
|
||||
/>
|
||||
</template>
|
||||
<div>
|
||||
<p class="mb-2">
|
||||
<strong>{{ t("settings.folder-alias") }}:</strong>
|
||||
{{ t("settings.folder-mappings-tooltip-aliases") }}
|
||||
</p>
|
||||
<p>
|
||||
<strong>{{ t("settings.platform-variant") }}:</strong>
|
||||
{{ t("settings.folder-mappings-tooltip-variants") }}
|
||||
</p>
|
||||
<p class="text-caption mt-2">
|
||||
{{ t("settings.folder-mappings-mutually-exclusive") }}
|
||||
</p>
|
||||
</div>
|
||||
</v-tooltip>
|
||||
<v-btn
|
||||
v-if="authStore.scopes.includes('platforms.write')"
|
||||
prepend-icon="mdi-plus"
|
||||
variant="outlined"
|
||||
class="text-primary"
|
||||
@click="emitter?.emit('showCreateFolderMappingDialog', null)"
|
||||
>
|
||||
{{ t("common.add") }}
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
<template #item.fsSlug="{ item }">
|
||||
<v-list-item class="pa-0 font-weight-medium" min-width="120px">
|
||||
|
||||
Reference in New Issue
Block a user