From db52e9c29a2bcc8f46a7904a3b182df8c6801582 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Thu, 7 Apr 2022 10:09:30 +0200 Subject: [PATCH] Style fix for tagpicker --- assets/media/styles.css | 11 ++++++----- src/dashboardWebView/hooks/usePages.tsx | 10 ---------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/assets/media/styles.css b/assets/media/styles.css index 101be439..fc387807 100644 --- a/assets/media/styles.css +++ b/assets/media/styles.css @@ -173,20 +173,21 @@ .article__tags__input.freeform { position: relative; + outline: 1px solid var(--vscode-inputValidation-infoBorder); + outline-offset: -1px; } .article__tags__input.freeform input { padding-right: 35px; + border: 0; } .article__tags__input button { position: absolute; - bottom: 1px; - top: 1px; - right: 1px; + bottom: 0; + top: 0; + right: 0; width: 30px; - padding-bottom: 2px; - padding-top: 2px; display: inline-flex; align-items: center; justify-content: center; diff --git a/src/dashboardWebView/hooks/usePages.tsx b/src/dashboardWebView/hooks/usePages.tsx index f00c772c..37a024e8 100644 --- a/src/dashboardWebView/hooks/usePages.tsx +++ b/src/dashboardWebView/hooks/usePages.tsx @@ -11,16 +11,6 @@ import { Messenger } from '@estruyf/vscode/dist/client'; import { DashboardMessage } from '../DashboardMessage'; import { EventData } from '@estruyf/vscode/dist/models'; -const fuseOptions: Fuse.IFuseOptions = { - keys: [ - { name: 'title', weight: 0.8 }, - { name: 'slug', weight: 0.8 }, - { name: 'description', weight: 0.5 } - ], - includeScore: true, - threshold: 0.1 -}; - export default function usePages(pages: Page[]) { const [ pageItems, setPageItems ] = useState([]); const [ sorting, setSorting ] = useRecoilState(SortingAtom);