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: 2 additions & 2 deletions packages/app-elements/src/ui/atoms/CopyToClipboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ export const CopyToClipboard: React.FC<CopyToClipboardProps> = ({
{showValue && (
<div className="overflow-x-auto py-2">
{isJsonString(value) ? (
<div className="whitespace-pre max-h-[200px] font-mono font-medium">
<div className="whitespace-pre max-h-[200px] font-mono font-medium text-sm">
{JSON.stringify(JSON.parse(value), null, 2)}
</div>
) : (
value
<div className="font-medium text-sm">{value}</div>
)}
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/app-elements/src/ui/composite/ListDetailsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function ListDetailsItem({
<div
data-testid={`list-details-item-${label}-value`}
// keep `min-w-0` to avoid grid overflow when grid-item content is too long
className={classNames("font-medium min-w-0", {
className={classNames("font-medium min-w-0 text-sm", {
"py-2": !childrenHaveInternalPadding,
"md:text-right": childrenAlign === "right",
truncate: typeof children === "string",
Expand Down
4 changes: 2 additions & 2 deletions packages/app-elements/src/ui/composite/Report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ function renderItem(item: ReportItem, key: Key): JSX.Element {
target="_blank"
rel="noopener noreferrer"
href={item.linkUrl}
className="text-sm font-bold text-primary hover:underline"
className="text-sm font-semibold text-primary"
data-testid={`report-item-${item.label}-link`}
>
{item.linkLabel ?? t("common.download_file")}
</a>
) : item.downloadJsonAsFile != null ? (
<button
type="button"
className="text-sm font-bold text-primary hover:underline"
className="text-sm font-semibold text-gray-600 border px-2 rounded bg-gray-50"
onClick={() => {
downloadJsonAsFile({
json: item.downloadJsonAsFile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const ResourceDetails = withSkeletonTemplate<ResourceDetailsProps>(
</ListDetailsItem>
<ListDetailsItem label="Reference" gutter="none">
<FlexRow alignItems="center">
<Text weight="semibold">{reference}</Text>
<Text weight="semibold" size="small">
{reference}
</Text>
{canUser("update", resource.type as ListableResourceType) && (
<button
type="button"
Expand All @@ -53,18 +55,18 @@ export const ResourceDetails = withSkeletonTemplate<ResourceDetailsProps>(
</FlexRow>
</ListDetailsItem>
<ListDetailsItem label="Updated" gutter="none">
<Text weight="semibold">
<Text weight="semibold" size="small">
{formatDate({
isoDate: resource?.updated_at,
timezone: user?.timezone,
format: "fullWithSeconds",
showCurrentYear: true,
locale,
})}
})}{" "}
</Text>
</ListDetailsItem>
<ListDetailsItem label="Created" gutter="none">
<Text weight="semibold">
<Text weight="semibold" size="small">
{formatDate({
isoDate: resource?.created_at,
timezone: user?.timezone,
Expand Down
Loading