From 04b91308b18102a12fb6ab7d2093516e01ce4506 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 13 Feb 2026 19:26:08 +0200 Subject: [PATCH] chore(search): remove redundant border on mobile --- .../ribbon/SearchDefinitionOptions.tsx | 7 +++++-- .../widgets/ribbon/SearchDefinitionTab.css | 20 ++++++++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx index 02b52bf9e3..c62b538af5 100644 --- a/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx +++ b/apps/client/src/widgets/ribbon/SearchDefinitionOptions.tsx @@ -1,4 +1,5 @@ import { AttributeType } from "@triliumnext/commons"; +import clsx from "clsx"; import { ComponentChildren, VNode } from "preact"; import { useEffect, useMemo, useRef } from "preact/hooks"; @@ -106,8 +107,9 @@ export const SEARCH_OPTIONS: SearchOption[] = [ } ]; -function SearchOption({ note, title, titleIcon, children, help, attributeName, attributeType, additionalAttributesToDelete }: { +function SearchOption({ note, className, title, titleIcon, children, help, attributeName, attributeType, additionalAttributesToDelete }: { note: FNote; + className?: string; title: string, titleIcon?: string, children?: ComponentChildren, @@ -117,7 +119,7 @@ function SearchOption({ note, title, titleIcon, children, help, attributeName, a additionalAttributesToDelete?: { type: "label" | "relation", name: string }[] }) { return ( - + {titleIcon && <>{" "}} {title} @@ -161,6 +163,7 @@ function SearchStringOption({ note, refreshResults, error, ...restProps }: Searc return <> {t("search_string.search_syntax")} - {t("search_string.also_see")} {t("search_string.complete_help")}
    diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.css b/apps/client/src/widgets/ribbon/SearchDefinitionTab.css index 118f61de27..f3c6e0f263 100644 --- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.css +++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.css @@ -147,14 +147,20 @@ body.mobile .search-definition-widget { gap: 0.5em; } - .search-setting-table tr.searchString td:nth-of-type(2) { - flex-grow: 1; - } + .search-setting-table tr.searchString { + td:nth-of-type(2) { + flex-grow: 1; + } - .search-setting-table tr.searchString .button-column { - flex-grow: 0; - flex-shrink: 0; - width: 64px; + .button-column { + flex-grow: 0; + flex-shrink: 0; + width: 64px; + } + + &.has-error { + border-bottom: 0; + } } .search-setting-table tr.ancestor > td > div {