Client:Pages:FormGallery: remove truncate from sort button, add auto width

This commit is contained in:
Timofey Boyko 2024-08-23 17:24:43 +03:00
parent e989edbf23
commit 826a4fae00

View File

@ -98,6 +98,7 @@ const SortFilter = ({ t, oformsFilter, sortOforms }) => {
fillIcon={false}
options={[]}
selectedOption={{}}
manualWidth={"auto"}
advancedOptions={
<>
{sortData?.map((item) => (
@ -109,9 +110,7 @@ const SortFilter = ({ t, oformsFilter, sortOforms }) => {
isSelected={oformsFilter.sortBy === item.key}
isDescending={oformsFilter.sortOrder === "desc"}
>
<Text fontWeight={600} truncate>
{item.label}
</Text>
<Text fontWeight={600}>{item.label}</Text>
<SortDesc className="sortorder-arrow" />
</Styled.SortDropdownItem>
))}