[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

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

View file

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