- notes/datetime.ts formatLocalDay had no caller; removed. - style.css set body in two consecutive blocks; they are one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,12 +50,6 @@ export function addLocalDays(d: Date, days: number): Date {
|
|||||||
return new Date(d.getFullYear(), d.getMonth(), d.getDate() + days);
|
return new Date(d.getFullYear(), d.getMonth(), d.getDate() + days);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format a local Date as "YYYY-MM-DD" (the shape an <input type="date"> reads).
|
|
||||||
export function formatLocalDay(d: Date): string {
|
|
||||||
const pad = (n: number) => String(n).padStart(2, "0");
|
|
||||||
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- Trash retention. The server permanently deletes a trashed note once it's older
|
// --- Trash retention. The server permanently deletes a trashed note once it's older
|
||||||
// than `trash_retention_days` (0 = keep forever). Counting down from the note's own
|
// than `trash_retention_days` (0 = keep forever). Counting down from the note's own
|
||||||
// deleted_at is what turns that from a surprise into a policy: a card in Trash can
|
// deleted_at is what turns that from a surprise into a policy: a card in Trash can
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ body,
|
|||||||
body {
|
body {
|
||||||
padding-left: env(safe-area-inset-left, 0px);
|
padding-left: env(safe-area-inset-left, 0px);
|
||||||
padding-right: env(safe-area-inset-right, 0px);
|
padding-right: env(safe-area-inset-right, 0px);
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
@apply bg-neutral-50 text-neutral-900 antialiased;
|
@apply bg-neutral-50 text-neutral-900 antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user