fix table header ui

This commit is contained in:
Julian Freeman
2026-04-17 16:49:20 -04:00
parent 5f835731fc
commit 3478c44860
4 changed files with 112 additions and 113 deletions

View File

@@ -68,6 +68,7 @@ function isSelected(profileId: string) {
</button>
</div>
<div class="modal-table">
<div v-if="isSelectableMode" class="modal-toolbar">
<label class="toolbar-checkbox" :class="{ disabled: !sortedProfiles.length }">
<input
@@ -94,7 +95,6 @@ function isSelected(profileId: string) {
</button>
</div>
<div class="modal-table">
<div class="modal-table-header modal-grid" :class="{ bookmark: isBookmark, extension: isExtension }">
<div v-if="isSelectableMode" class="header-cell checkbox-cell">Pick</div>
<div class="header-cell icon-cell">Avatar</div>
@@ -256,6 +256,8 @@ function isSelected(profileId: string) {
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px 8px;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.modal-table-header {

View File

@@ -32,6 +32,7 @@ function isSelected(url: string) {
<template>
<section class="table-section">
<div v-if="bookmarks.length" class="data-table">
<div class="bookmarks-toolbar">
<label class="toolbar-checkbox" :class="{ disabled: !bookmarks.length }">
<input
@@ -58,7 +59,6 @@ function isSelected(url: string) {
</button>
</div>
<div v-if="bookmarks.length" class="data-table">
<div class="data-table-header bookmarks-grid">
<div class="header-cell checkbox-cell">Pick</div>
<button class="header-cell sortable" :class="{ active: sortKey === 'title' }" type="button" @click="emit('update:sortKey', 'title')">Name</button>
@@ -112,9 +112,6 @@ function isSelected(url: string) {
<style scoped>
.table-section {
display: flex;
flex-direction: column;
gap: 10px;
padding: 0;
height: 100%;
min-height: 0;
@@ -125,6 +122,8 @@ function isSelected(url: string) {
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px 8px;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.data-table {

View File

@@ -32,6 +32,7 @@ function isSelected(extensionId: string) {
<template>
<section class="table-section">
<div v-if="extensions.length" class="data-table">
<div class="extensions-toolbar">
<label class="toolbar-checkbox" :class="{ disabled: !extensions.length }">
<input
@@ -58,7 +59,6 @@ function isSelected(extensionId: string) {
</button>
</div>
<div v-if="extensions.length" class="data-table">
<div class="data-table-header extensions-grid">
<div class="header-cell checkbox-cell">Pick</div>
<div class="header-cell icon-cell">Icon</div>
@@ -117,9 +117,6 @@ function isSelected(extensionId: string) {
<style scoped>
.table-section {
display: flex;
flex-direction: column;
gap: 10px;
padding: 0;
height: 100%;
min-height: 0;
@@ -130,6 +127,8 @@ function isSelected(extensionId: string) {
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px 8px;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.toolbar-checkbox {

View File

@@ -64,6 +64,7 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
<template>
<section class="table-section">
<div v-if="profiles.length" class="data-table">
<div class="history-toolbar">
<label class="toolbar-checkbox" :class="{ disabled: !selectableProfiles.length }">
<input
@@ -90,7 +91,6 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
</button>
</div>
<div v-if="profiles.length" class="data-table">
<div class="data-table-header history-grid">
<div class="header-cell checkbox-cell">Pick</div>
<div class="header-cell icon-cell">Avatar</div>
@@ -172,9 +172,6 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
<style scoped>
.table-section {
display: flex;
flex-direction: column;
gap: 10px;
padding: 0;
height: 100%;
min-height: 0;
@@ -185,6 +182,8 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px 8px;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.toolbar-checkbox {