Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/web/core/components/dropdowns/date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type Props = TDropdownProps & {
closeOnSelect?: boolean;
formatToken?: string;
renderByDefault?: boolean;
labelClassName?: string;
};

export const DateDropdown = observer(function DateDropdown(props: Props) {
Expand Down Expand Up @@ -62,6 +63,7 @@ export const DateDropdown = observer(function DateDropdown(props: Props) {
value,
formatToken,
renderByDefault = true,
labelClassName = "",
} = props;
// states
const [isOpen, setIsOpen] = useState(defaultOpen);
Expand Down Expand Up @@ -138,7 +140,7 @@ export const DateDropdown = observer(function DateDropdown(props: Props) {
>
{!hideIcon && icon}
{BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (
<span className="flex-grow truncate text-left text-body-xs-medium">
<span className={cn("flex-grow truncate text-left text-body-xs-medium", labelClassName)}>
{value ? renderFormattedDate(value, formatToken) : placeholder}
</span>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export const IssueProperties = observer(function IssueProperties(props: IIssuePr
disabled={isReadOnly}
renderByDefault={isMobile}
showTooltip
labelClassName="text-caption-sm-regular"
/>
</div>
</WithDisplayPropertiesHOC>
Expand All @@ -351,6 +352,7 @@ export const IssueProperties = observer(function IssueProperties(props: IIssuePr
disabled={isReadOnly}
renderByDefault={isMobile}
showTooltip
labelClassName="text-caption-sm-regular"
/>
</div>
</WithDisplayPropertiesHOC>
Expand Down
Loading