Skip to content

Commit

Permalink
Design: Main Column actions as inline icons to avoid scrolling by def…
Browse files Browse the repository at this point in the history
…ault

Signed-off-by: Florian Steffens <[email protected]>
  • Loading branch information
Florian Steffens committed Aug 11, 2023
1 parent 8354047 commit 46c9378
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions src/shared/components/ncTable/partials/TableHeaderColumnOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,25 @@
{{ t('tables', 'Select value') }}
</NcActionButton>
<NcActionCaption :title="t('tables', 'Manage column')" />
<NcActionButton
:disabled="!canHide"
@click="hideColumn()">
<template #icon>
<EyeOff :size="25" />
</template>
{{ t('tables', 'Hide column') }}
</NcActionButton>
<NcActionButton v-if="column.id >= 0 && config.canEditColumns" @click="editColumn()">
<template #icon>
<Pencil :size="25" />
</template>
{{ t('tables', 'Edit column') }}
</NcActionButton>
<NcActionButton v-if="column.id >= 0 && config.canDeleteColumns" @click="deleteColumn()">
<template #icon>
<Delete :size="25" />
</template>
{{ t('tables', 'Delete column') }}
</NcActionButton>
<NcActionButtonGroup :name="t('tables', 'Column manage actions')">
<NcActionButton
:disabled="!canHide"
@click="hideColumn()">
<template #icon>
<EyeOff :size="25" />
</template>
</NcActionButton>
<NcActionButton v-if="column.id >= 0 && config.canEditColumns" @click="editColumn()">
<template #icon>
<Pencil :size="25" />
</template>
</NcActionButton>
<NcActionButton v-if="column.id >= 0 && config.canDeleteColumns" @click="deleteColumn()">
<template #icon>
<Delete :size="25" />
</template>
</NcActionButton>
</NcActionButtonGroup>
</template>
</NcActions>
</div>
Expand Down

0 comments on commit 46c9378

Please sign in to comment.