fix table header ui
This commit is contained in:
@@ -68,6 +68,7 @@ function isSelected(profileId: string) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-table">
|
||||||
<div v-if="isSelectableMode" class="modal-toolbar">
|
<div v-if="isSelectableMode" class="modal-toolbar">
|
||||||
<label class="toolbar-checkbox" :class="{ disabled: !sortedProfiles.length }">
|
<label class="toolbar-checkbox" :class="{ disabled: !sortedProfiles.length }">
|
||||||
<input
|
<input
|
||||||
@@ -94,7 +95,6 @@ function isSelected(profileId: string) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-table">
|
|
||||||
<div class="modal-table-header modal-grid" :class="{ bookmark: isBookmark, extension: isExtension }">
|
<div class="modal-table-header modal-grid" :class="{ bookmark: isBookmark, extension: isExtension }">
|
||||||
<div v-if="isSelectableMode" class="header-cell checkbox-cell">Pick</div>
|
<div v-if="isSelectableMode" class="header-cell checkbox-cell">Pick</div>
|
||||||
<div class="header-cell icon-cell">Avatar</div>
|
<div class="header-cell icon-cell">Avatar</div>
|
||||||
@@ -256,6 +256,8 @@ function isSelected(profileId: string) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
padding: 10px 12px 8px;
|
||||||
|
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-table-header {
|
.modal-table-header {
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ function isSelected(url: string) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="table-section">
|
<section class="table-section">
|
||||||
|
<div v-if="bookmarks.length" class="data-table">
|
||||||
<div class="bookmarks-toolbar">
|
<div class="bookmarks-toolbar">
|
||||||
<label class="toolbar-checkbox" :class="{ disabled: !bookmarks.length }">
|
<label class="toolbar-checkbox" :class="{ disabled: !bookmarks.length }">
|
||||||
<input
|
<input
|
||||||
@@ -58,7 +59,6 @@ function isSelected(url: string) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="bookmarks.length" class="data-table">
|
|
||||||
<div class="data-table-header bookmarks-grid">
|
<div class="data-table-header bookmarks-grid">
|
||||||
<div class="header-cell checkbox-cell">Pick</div>
|
<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>
|
<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>
|
<style scoped>
|
||||||
.table-section {
|
.table-section {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
@@ -125,6 +122,8 @@ function isSelected(url: string) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
padding: 10px 12px 8px;
|
||||||
|
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-table {
|
.data-table {
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ function isSelected(extensionId: string) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="table-section">
|
<section class="table-section">
|
||||||
|
<div v-if="extensions.length" class="data-table">
|
||||||
<div class="extensions-toolbar">
|
<div class="extensions-toolbar">
|
||||||
<label class="toolbar-checkbox" :class="{ disabled: !extensions.length }">
|
<label class="toolbar-checkbox" :class="{ disabled: !extensions.length }">
|
||||||
<input
|
<input
|
||||||
@@ -58,7 +59,6 @@ function isSelected(extensionId: string) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="extensions.length" class="data-table">
|
|
||||||
<div class="data-table-header extensions-grid">
|
<div class="data-table-header extensions-grid">
|
||||||
<div class="header-cell checkbox-cell">Pick</div>
|
<div class="header-cell checkbox-cell">Pick</div>
|
||||||
<div class="header-cell icon-cell">Icon</div>
|
<div class="header-cell icon-cell">Icon</div>
|
||||||
@@ -117,9 +117,6 @@ function isSelected(extensionId: string) {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.table-section {
|
.table-section {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
@@ -130,6 +127,8 @@ function isSelected(extensionId: string) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
padding: 10px 12px 8px;
|
||||||
|
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-checkbox {
|
.toolbar-checkbox {
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="table-section">
|
<section class="table-section">
|
||||||
|
<div v-if="profiles.length" class="data-table">
|
||||||
<div class="history-toolbar">
|
<div class="history-toolbar">
|
||||||
<label class="toolbar-checkbox" :class="{ disabled: !selectableProfiles.length }">
|
<label class="toolbar-checkbox" :class="{ disabled: !selectableProfiles.length }">
|
||||||
<input
|
<input
|
||||||
@@ -90,7 +91,6 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="profiles.length" class="data-table">
|
|
||||||
<div class="data-table-header history-grid">
|
<div class="data-table-header history-grid">
|
||||||
<div class="header-cell checkbox-cell">Pick</div>
|
<div class="header-cell checkbox-cell">Pick</div>
|
||||||
<div class="header-cell icon-cell">Avatar</div>
|
<div class="header-cell icon-cell">Avatar</div>
|
||||||
@@ -172,9 +172,6 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.table-section {
|
.table-section {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
@@ -185,6 +182,8 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
padding: 10px 12px 8px;
|
||||||
|
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-checkbox {
|
.toolbar-checkbox {
|
||||||
|
|||||||
Reference in New Issue
Block a user