Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(frontend): keep CI green after the responsive-nav merge

Juan Denis4a4742989e3e
diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scss
index 6a55a973..b0ac920e 100644
--- a/frontend/src/styles/components/_design-system.scss
+++ b/frontend/src/styles/components/_design-system.scss
@@ -1275,8 +1275,8 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
- -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
- mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
+ -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 28px), transparent 100%);
+ mask-image: linear-gradient(to right, black 0, black calc(100% - 28px), transparent 100%);
> *,
> .sk-topbar__chrome > * { flex-shrink: 0; }
diff --git a/frontend/src/styles/pages/_databases.scss b/frontend/src/styles/pages/_databases.scss
index 05e00b08..99b1ee78 100644
--- a/frontend/src/styles/pages/_databases.scss
+++ b/frontend/src/styles/pages/_databases.scss
@@ -123,8 +123,8 @@ $dbx-sqlite: #3d8fd1;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
- -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
- mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
+ -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 28px), transparent 100%);
+ mask-image: linear-gradient(to right, black 0, black calc(100% - 28px), transparent 100%);
&::-webkit-scrollbar { display: none; }
}
diff --git a/frontend/src/utils/__tests__/intl.test.mjs b/frontend/src/utils/__tests__/intl.test.mjs
index f07af8ee..f6bed9ee 100644
--- a/frontend/src/utils/__tests__/intl.test.mjs
+++ b/frontend/src/utils/__tests__/intl.test.mjs
@@ -96,7 +96,9 @@ test('the compact style keeps its shape, and its date tail follows the locale',
assert.equal(formatRelativeShort(Date.now() - 2 * 86400000), '2d');
// Past a week it becomes a date -- which used to be the browser's date.
- const old = Date.now() - 60 * 86400000;
+ // Pinned rather than "60 days ago": on any day whose month equals its
+ // day-of-month (7 July) the en-US and es short dates coincide.
+ const old = new Date('2024-03-15T12:00:00Z').getTime();
const english = formatRelativeShort(old);
setFormatLocale('es');
assert.notEqual(formatRelativeShort(old), english);