From 31b8ec6f7d588086d5435441eb6c22432efa8067 Mon Sep 17 00:00:00 2001 From: shuaiplus <2327005759@qq.com> Date: Wed, 22 Apr 2026 21:39:15 +0800 Subject: [PATCH] feat: update VaultListPanel styles for improved item display and adjust row height for better layout --- webapp/src/components/vault/VaultListPanel.tsx | 5 ++--- webapp/src/components/vault/vault-page-helpers.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/vault/VaultListPanel.tsx b/webapp/src/components/vault/VaultListPanel.tsx index 0e46274..0c3fe4a 100644 --- a/webapp/src/components/vault/VaultListPanel.tsx +++ b/webapp/src/components/vault/VaultListPanel.tsx @@ -185,11 +185,10 @@ export default function VaultListPanel(props: VaultListPanelProps) {
props.onScroll((event.currentTarget as HTMLDivElement).scrollTop)}> {!!props.filteredCiphers.length && (
- {props.visibleCiphers.map((cipher, index) => ( + {props.visibleCiphers.map((cipher) => (
{ const target = event.target as HTMLElement; if (target.closest('.row-check')) return; diff --git a/webapp/src/components/vault/vault-page-helpers.tsx b/webapp/src/components/vault/vault-page-helpers.tsx index 8632522..3e39280 100644 --- a/webapp/src/components/vault/vault-page-helpers.tsx +++ b/webapp/src/components/vault/vault-page-helpers.tsx @@ -37,7 +37,7 @@ export const CREATE_TYPE_OPTIONS: TypeOption[] = [ export const VAULT_SORT_STORAGE_KEY = 'nodewarden.vault.sort.v1'; export const MOBILE_LAYOUT_QUERY = '(max-width: 900px)'; -export const VAULT_LIST_ROW_HEIGHT = 66; +export const VAULT_LIST_ROW_HEIGHT = 74; export const VAULT_LIST_OVERSCAN = 10; export const VAULT_SORT_OPTIONS: Array<{ value: VaultSortMode; label: string }> = [ { value: 'edited', label: t('txt_sort_last_edited') },