From f8f4b961a1bef3a122a5ffaa3418a51ae97a7389 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 30 Jan 2024 14:53:10 +0800 Subject: [PATCH] chore: handle app name and options too long (#2283) --- .../app/configuration/config-var/config-select/index.tsx | 4 ++-- web/app/components/base/select/index.tsx | 4 ++-- web/app/components/explore/sidebar/app-nav-item/index.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/app/components/app/configuration/config-var/config-select/index.tsx b/web/app/components/app/configuration/config-var/config-select/index.tsx index 0174e7044f..e23c7330b1 100644 --- a/web/app/components/app/configuration/config-var/config-select/index.tsx +++ b/web/app/components/app/configuration/config-var/config-select/index.tsx @@ -43,7 +43,7 @@ const ConfigSelect: FC = ({
- +
= ({ return item })) }} - className={`${s.input} w-full px-1.5 text-sm leading-9 text-gray-900 border-0 grow h-9 bg-transparent focus:outline-none cursor-pointer`} + className={'w-full pl-1.5 pr-8 text-sm leading-9 text-gray-900 border-0 grow h-9 bg-transparent focus:outline-none cursor-pointer'} /> = ({ > {({ /* active, */ selected }) => ( <> - {item.name} + {item.name} {selected && ( = ({ > {({ /* active, */ selected }) => ( <> - {item.name} + {item.name} {selected && (
-
{name}
+
{name}
e.stopPropagation()}>