Skip to content

Commit

Permalink
[TM-1559] change style in sidebar site view version dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Dec 13, 2024
1 parent 63e10b4 commit 3c969a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,11 @@ const VersionHistory = ({
suffixLabelView={true}
labelClassName="capitalize"
labelVariant="text-14-light"
optionsClassName="!h-[182px] lg:!h-[195px] wide:h-[266px]"
optionsClassName="!max-h-[182px] lg:!max-h-[195px] wide:max-h-[266px]"
placeholder="Select Polygon Version"
options={polygonVersionData ?? []}
optionVariant="text-12-light"
titleClassname="one-line-text !w-[96%] !text-nowrap"
defaultValue={[selectPolygonVersion?.uuid ?? selectedPolygon?.uuid] as string[]}
onChange={e => {
const polygonVersionData = (data as SitePolygonsDataResponse)?.find(item => item.uuid === e[0]);
Expand Down
3 changes: 2 additions & 1 deletion src/components/elements/Inputs/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface DropdownProps {
onClear?: () => void;
onInternalError?: (error: ErrorOption) => void;
showSelectAll?: boolean;
titleClassname?: string;
}
const otherKey = "other#value#key";
const getAllowedValues = (values: OptionValue[], options: Option[]) =>
Expand Down Expand Up @@ -208,7 +209,7 @@ const Dropdown = (props: PropsWithChildren<DropdownProps>) => {
<div className={tw("flex items-center gap-2", variant.titleContainerClassName)}>
<Text
variant={props.inputVariant ?? "text-14-light"}
className={tw("w-full", variant.titleClassname)}
className={tw("w-full", variant.titleClassname, props.titleClassname)}
title={formatSelectedValues(
selected,
options,
Expand Down

0 comments on commit 3c969a4

Please sign in to comment.