chore: format

This commit is contained in:
Stephen Zhou
2025-10-22 11:30:39 +08:00
parent 3ac8309aeb
commit 2163a74085
2 changed files with 7 additions and 7 deletions
@@ -56,12 +56,12 @@ export const ShortcutComponent: React.FC<ShortcutComponentProps> = ({
<TooltipContent side="top" className="max-w-[320px]">
<div className="flex flex-col gap-1 p-1">
<div className="flex items-center gap-1.5">
<span className="text-text-tertiary font-mono text-xs">/</span>
<span className="text-text text-sm font-medium">{shortcutData.name}</span>
<span className="font-mono text-xs text-text-tertiary">/</span>
<span className="text-sm font-medium text-text">{shortcutData.name}</span>
</div>
{shortcutData.prompt ? (
<span className="text-text-secondary text-xs leading-snug">
<span className="text-xs leading-snug text-text-secondary">
{shortcutData.prompt}
</span>
) : null}
@@ -222,11 +222,11 @@ export const TaskItem = memo(({ task }: { task: AITask }) => {
]
return (
<div className="border-border hover:bg-material-medium group -ml-3 rounded-lg border p-3 transition-colors">
<div className="group -ml-3 rounded-lg border border-border p-3 transition-colors hover:bg-material-medium">
<div className="flex items-start justify-between">
<div className="flex-1 space-y-2">
<div className="flex items-center gap-2">
<h4 className="text-text text-sm font-medium">{task.name}</h4>
<h4 className="text-sm font-medium text-text">{task.name}</h4>
<span
className={cn(
"inline-flex items-center rounded-full px-2 py-1 text-xs",
@@ -242,12 +242,12 @@ export const TaskItem = memo(({ task }: { task: AITask }) => {
</span>
</div>
<div className="space-y-1">
<p className="text-text-secondary text-xs">
<p className="text-xs text-text-secondary">
<span className="text-text-tertiary">{t("tasks.fields.schedule")}</span>{" "}
{formatScheduleText(task.schedule, t, i18n)}
</p>
{task.createdAt && (
<p className="text-text-secondary text-xs">
<p className="text-xs text-text-secondary">
<span className="text-text-tertiary">{t("tasks.fields.created")}</span>{" "}
{dayjs(task.createdAt).format("MMM D, YYYY h:mm A")}
</p>