[WEB-5786] fix: updated font size for dates at Kanban card #8429

This commit is contained in:
Vamsi Krishna
2025-12-23 14:32:01 +05:30
committed by GitHub
parent 373e640a25
commit 70eea50db5
2 changed files with 5 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ type Props = TDropdownProps & {
closeOnSelect?: boolean;
formatToken?: string;
renderByDefault?: boolean;
labelClassName?: string;
};
export const DateDropdown = observer(function DateDropdown(props: Props) {
@@ -62,6 +63,7 @@ export const DateDropdown = observer(function DateDropdown(props: Props) {
value,
formatToken,
renderByDefault = true,
labelClassName = "",
} = props;
// states
const [isOpen, setIsOpen] = useState(defaultOpen);
@@ -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>
)}

View File

@@ -327,6 +327,7 @@ export const IssueProperties = observer(function IssueProperties(props: IIssuePr
disabled={isReadOnly}
renderByDefault={isMobile}
showTooltip
labelClassName="text-caption-sm-regular"
/>
</div>
</WithDisplayPropertiesHOC>
@@ -351,6 +352,7 @@ export const IssueProperties = observer(function IssueProperties(props: IIssuePr
disabled={isReadOnly}
renderByDefault={isMobile}
showTooltip
labelClassName="text-caption-sm-regular"
/>
</div>
</WithDisplayPropertiesHOC>