From 1ab3216a29010f1051dbb4ec334214b8161e8f9f Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Mon, 20 May 2024 13:55:47 +0800 Subject: [PATCH] fix: container of command input can't be position fix https://github.com/algolia/autocomplete/issues/1199 --- src/commandpalette/styles/DefaultCommandPalette.css.tid | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commandpalette/styles/DefaultCommandPalette.css.tid b/src/commandpalette/styles/DefaultCommandPalette.css.tid index c33ef0e..6515a51 100644 --- a/src/commandpalette/styles/DefaultCommandPalette.css.tid +++ b/src/commandpalette/styles/DefaultCommandPalette.css.tid @@ -3,11 +3,9 @@ title: $:/plugins/linonetwo/commandpalette/styles/DefaultCommandPalette.css tags: $:/tags/Stylesheet \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html -:root { - --palette-radius: 5px; -} + .tw-commandpalette-default-container { - position: fixed; + position: absolute; background:<>; z-index: 9999; left: 50%; @@ -19,6 +17,8 @@ tags: $:/tags/Stylesheet border-radius: var(--palette-radius); box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 14px; border: 4px solid transparent; + + --palette-radius: 5px; } @media (max-width: 540px) { .tw-commandpalette-default-container {