Skip to content

Commit f8ebf77

Browse files
authored
Merge pull request #2493 from nktnet1/fix-server-schedule-responsiveness
fix(ui): schedule responsiveness
2 parents fd199fd + 38abe03 commit f8ebf77

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const ShowDeployments = ({
7777
<div className="flex flex-col gap-2">
7878
<CardTitle className="text-xl">Deployments</CardTitle>
7979
<CardDescription>
80-
See all the 10 last deployments for this {type}
80+
See the last 10 deployments for this {type}
8181
</CardDescription>
8282
</div>
8383
<div className="flex flex-row items-center gap-2">
@@ -104,7 +104,9 @@ export const ShowDeployments = ({
104104
<span>Webhook URL: </span>
105105
<div className="flex flex-row items-center gap-2">
106106
<span className="break-all text-muted-foreground">
107-
{`${url}/api/deploy${type === "compose" ? "/compose" : ""}/${refreshToken}`}
107+
{`${url}/api/deploy${
108+
type === "compose" ? "/compose" : ""
109+
}/${refreshToken}`}
108110
</span>
109111
{(type === "application" || type === "compose") && (
110112
<RefreshToken id={id} type={type} />

apps/dokploy/components/dashboard/application/schedules/show-schedules.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
5858
return (
5959
<Card className="border px-6 shadow-none bg-transparent h-full min-h-[50vh]">
6060
<CardHeader className="px-0">
61-
<div className="flex justify-between items-center">
61+
<div className="flex justify-between items-center gap-y-2 flex-wrap">
6262
<div className="flex flex-col gap-2">
6363
<CardTitle className="text-xl font-bold flex items-center gap-2">
6464
Scheduled Tasks
@@ -91,15 +91,15 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
9191
return (
9292
<div
9393
key={schedule.scheduleId}
94-
className="flex items-center justify-between rounded-lg border p-3 transition-colors bg-muted/50"
94+
className="flex items-center flex-wrap sm:flex-nowrap gap-y-2 justify-between rounded-lg border p-3 transition-colors bg-muted/50"
9595
>
9696
<div className="flex items-start gap-3">
97-
<div className="flex h-9 w-9 items-center justify-center rounded-full bg-primary/5">
97+
<div className="flex flex-shrink-0 h-9 w-9 items-center justify-center rounded-full bg-primary/5">
9898
<Clock className="size-4 text-primary/70" />
9999
</div>
100100
<div className="space-y-1.5">
101-
<div className="flex items-center gap-2">
102-
<h3 className="text-sm font-medium leading-none">
101+
<div className="flex items-center gap-2 flex-wrap">
102+
<h3 className="text-sm font-medium leading-none [overflow-wrap:anywhere] line-clamp-3">
103103
{schedule.name}
104104
</h3>
105105
<Badge
@@ -109,7 +109,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
109109
{schedule.enabled ? "Enabled" : "Disabled"}
110110
</Badge>
111111
</div>
112-
<div className="flex items-center gap-2 text-sm text-muted-foreground">
112+
<div className="flex items-center gap-2 text-sm text-muted-foreground flex-wrap">
113113
<Badge
114114
variant="outline"
115115
className="font-mono text-[10px] bg-transparent"
@@ -142,7 +142,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
142142
</div>
143143
</div>
144144

145-
<div className="flex items-center gap-1.5">
145+
<div className="flex items-center gap-0.5 md:gap-1.5">
146146
<ShowDeploymentsModal
147147
id={schedule.scheduleId}
148148
type="schedule"
@@ -226,7 +226,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
226226
})}
227227
</div>
228228
) : (
229-
<div className="flex flex-col gap-2 items-center justify-center py-12 rounded-lg">
229+
<div className="flex flex-col gap-2 items-center justify-center py-12 rounded-lg">
230230
<Clock className="size-8 mb-4 text-muted-foreground" />
231231
<p className="text-lg font-medium text-muted-foreground">
232232
No scheduled tasks

0 commit comments

Comments
 (0)