mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 08:09:33 +01:00
[WEB-5786] fix: updated font size for dates at Kanban card #8429
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user