@@ -910,41 +910,42 @@ watch(
910910 @click .stop =" refresh "
911911 >
912912 <span class =" i-carbon-renew h-3.5 w-3.5" :class =" { 'animate-spin': loading }" />
913- <!-- Column visibility dropdown -->
914- <div class =" flex-shrink-0 relative" >
915- <Button
916- variant="ghost"
917- size="icon"
918- class="h-7 w-7"
919- :title =" t (' components.dataTableView.columns' )"
920- @click .stop =" showColumnMenu = ! showColumnMenu "
921- >
922- <span class =" i-carbon-table-split h-3.5 w-3.5" />
923- </Button >
913+ </Button >
924914
925- <div
926- v-if =" showColumnMenu && data && data.columns.length > 0"
927- class =" text-popover-foreground mt-1 border rounded-md bg-popover max-h-64 min-w-36 shadow-md right-0 top-full absolute z-50 overflow-auto"
928- @click.stop
929- >
930- <div class =" text-xs text-muted-foreground font-semibold p-1 px-2 py-1.5 border-b" >
931- {{ t('components.dataTableView.columns') }}
932- </div >
933- <div class =" p-1" >
934- <button
935- v-for =" col in data.columns"
936- :key =" col"
937- class =" text-sm px-2 py-1 text-left rounded flex gap-2 w-full cursor-pointer items-center hover:bg-accent"
938- @click =" toggleColumn(col)"
939- >
940- <span v-if =" !hiddenColumns.has(col)" class =" i-carbon-checkmark text-primary flex-shrink-0 h-3 w-3" />
941- <span v-else class =" flex-shrink-0 w-3 inline-block" />
942- <span class =" truncate" >{{ col }}</span >
943- </button >
944- </div >
915+ <!-- Column visibility dropdown -->
916+ <div class =" flex-shrink-0 relative" >
917+ <Button
918+ variant="ghost"
919+ size="icon"
920+ class="h-7 w-7"
921+ :title =" t (' components.dataTableView.columns' )"
922+ @click .stop =" showColumnMenu = ! showColumnMenu "
923+ >
924+ <span class =" i-carbon-table-split h-3.5 w-3.5" />
925+ </Button >
926+
927+ <div
928+ v-if =" showColumnMenu && data && data.columns.length > 0"
929+ class =" text-popover-foreground mt-1 border rounded-md bg-popover max-h-64 min-w-36 shadow-md right-0 top-full absolute z-50 overflow-auto"
930+ @click.stop
931+ >
932+ <div class =" text-xs text-muted-foreground font-semibold p-1 px-2 py-1.5 border-b" >
933+ {{ t('components.dataTableView.columns') }}
934+ </div >
935+ <div class =" p-1" >
936+ <button
937+ v-for =" col in data.columns"
938+ :key =" col"
939+ class =" text-sm px-2 py-1 text-left rounded flex gap-2 w-full cursor-pointer items-center hover:bg-accent"
940+ @click =" toggleColumn(col)"
941+ >
942+ <span v-if =" !hiddenColumns.has(col)" class =" i-carbon-checkmark text-primary flex-shrink-0 h-3 w-3" />
943+ <span v-else class =" flex-shrink-0 w-3 inline-block" />
944+ <span class =" truncate" >{{ col }}</span >
945+ </button >
945946 </div >
946947 </div >
947- </Button >
948+ </div >
948949
949950 <!-- Delete Selected button -->
950951 <Button
0 commit comments