Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
6da3a33e
Unverified
Commit
6da3a33e
authored
Dec 22, 2023
by
Joel
Committed by
GitHub
Dec 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: selection too long break ui (#1826)
parent
2c8badfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.tsx
web/app/components/base/select/index.tsx
+2
-2
No files found.
web/app/components/base/select/index.tsx
View file @
6da3a33e
...
@@ -98,7 +98,7 @@ const Select: FC<ISelectProps> = ({
...
@@ -98,7 +98,7 @@ const Select: FC<ISelectProps> = ({
setOpen
(
!
open
)
setOpen
(
!
open
)
}
}
}
className=
{
`flex items-center h-9 w-full rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-gray-200 group-hover:bg-gray-200`
}
>
}
className=
{
`flex items-center h-9 w-full rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-gray-200 group-hover:bg-gray-200`
}
>
{
selectedItem
?.
name
}
<
div
className=
'w-0 grow text-left truncate'
title=
{
selectedItem
?.
name
}
>
{
selectedItem
?.
name
}
</
div
>
</
Combobox
.
Button
>
}
</
Combobox
.
Button
>
}
<
Combobox
.
Button
className=
"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none group-hover:bg-gray-200"
onClick=
{
<
Combobox
.
Button
className=
"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none group-hover:bg-gray-200"
onClick=
{
()
=>
{
()
=>
{
...
@@ -290,7 +290,7 @@ const PortalSelect: FC<PortalSelectProps> = ({
...
@@ -290,7 +290,7 @@ const PortalSelect: FC<PortalSelectProps> = ({
}
}
}
}
>
>
<
span
<
span
className=
'grow truncate'
className=
'
w-0
grow truncate'
title=
{
item
.
name
}
title=
{
item
.
name
}
>
>
{
item
.
name
}
{
item
.
name
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment