Skip to content

Commit fb6531d

Browse files
committed
fix few small issues, improve logo, add favicon
1 parent 46e0838 commit fb6531d

16 files changed

Lines changed: 47 additions & 46 deletions

File tree

app/_components/FeatureComponents/Cronjobs/CronJobList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export const CronJobList = ({ cronJobs, scripts }: CronJobListProps) => {
236236
<CardHeader>
237237
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
238238
<div className="flex items-center gap-3">
239-
<div className="p-2 bg-primary/10 rounded-lg">
239+
<div className="p-2 bg-primary/10 ascii-border">
240240
<ClockIcon className="h-5 w-5 text-primary" />
241241
</div>
242242
<div>
@@ -301,7 +301,7 @@ export const CronJobList = ({ cronJobs, scripts }: CronJobListProps) => {
301301
onNewTaskClick={() => setIsNewCronModalOpen(true)}
302302
/>
303303
) : (
304-
<div className="space-y-4 max-h-[55vh] min-h-[55vh] overflow-y-auto tui-scrollbar pr-2">
304+
<div className="space-y-4 max-h-[55vh] min-h-[55vh] overflow-y-auto tui-scrollbar pr-1">
305305
{loadedSettings ? (
306306
filteredJobs.map((job) =>
307307
minimalMode ? (

app/_components/FeatureComponents/Cronjobs/Parts/CronJobItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const CronJobItem = ({
148148
return (
149149
<div
150150
key={job.id}
151-
className={`tui-card p-4 terminal-font transition-colors ${isDropdownOpen ? "relative z-10" : ""
151+
className={`border border-border lg:tui-card p-4 terminal-font transition-colors ${isDropdownOpen ? "relative z-10" : ""
152152
}`}
153153
>
154154
<div className="flex flex-col sm:flex-row sm:items-start gap-4">

app/_components/FeatureComponents/Cronjobs/Parts/MinimalCronJobItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const MinimalCronJobItem = ({
139139
return (
140140
<div
141141
key={job.id}
142-
className={`tui-card p-3 terminal-font transition-colors ${isDropdownOpen ? "relative z-10" : ""
142+
className={`border border-border lg:tui-card p-3 terminal-font transition-colors ${isDropdownOpen ? "relative z-10" : ""
143143
}`}
144144
>
145145
<div className="flex items-center gap-3">

app/_components/FeatureComponents/Layout/Sidebar.tsx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -101,29 +101,11 @@ export const Sidebar = forwardRef<HTMLDivElement, SidebarProps>(
101101
)}
102102
</button>
103103

104-
<div className="p-4 ascii-border !border-t-0 border-l-0 !border-r-0 bg-background0">
105-
<div
106-
className={cn(
107-
"flex items-center gap-3",
108-
isCollapsed && "lg:justify-center"
109-
)}
110-
>
111-
<div className="p-2 bg-background0 ascii-border flex-shrink-0">
112-
<HardDrivesIcon className="h-4 w-4" />
113-
</div>
114-
{(!isCollapsed || !isCollapsed) && (
115-
<h2 className="text-sm font-semibold truncate terminal-font">
116-
{t("sidebar.systemOverview")}
117-
</h2>
118-
)}
119-
</div>
120-
</div>
121-
122104
<div
123105
className={cn(
124106
"overflow-y-auto tui-scrollbar",
125107
isCollapsed ? "lg:p-2" : "p-4",
126-
"h-full lg:h-[calc(100vh-88px-80px)]"
108+
"h-full lg:h-[calc(100vh-88px)]"
127109
)}
128110
>
129111
{isCollapsed ? (

app/_components/FeatureComponents/PWA/PWAInstallPrompt.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const PWAInstallPrompt = (): JSX.Element | null => {
1616
useEffect(() => {
1717
if (typeof window === "undefined") return;
1818
const onBeforeInstallPrompt = (e: Event) => {
19-
e.preventDefault();
2019
setDeferred(e as BeforeInstallPromptEvent);
2120
};
2221
const onAppInstalled = () => {
@@ -49,10 +48,10 @@ export const PWAInstallPrompt = (): JSX.Element | null => {
4948

5049
return (
5150
<button
52-
className="px-3 py-1 rounded-md border border-border bg-background/80 hover:bg-background/60"
51+
className="px-3 py-2 ascii-border bg-background0 hover:bg-background1 transition-colors terminal-font text-sm"
5352
onClick={onInstall}
5453
>
55-
Install App
54+
Install
5655
</button>
5756
);
5857
};

app/_components/FeatureComponents/Theme/ThemeToggle.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { useTheme } from 'next-themes';
44
import { useEffect, useState } from 'react';
5+
import { SunIcon, MoonIcon } from '@phosphor-icons/react';
56

67
export const ThemeToggle = () => {
78
const [mounted, setMounted] = useState(false);
@@ -18,9 +19,15 @@ export const ThemeToggle = () => {
1819
return (
1920
<button
2021
onClick={() => setTheme(isDark ? 'light' : 'dark')}
21-
className="px-3 py-2 ascii-border terminal-font text-sm bg-background0"
22+
className="p-2 ascii-border bg-background0 hover:bg-background1 transition-colors"
23+
aria-label={isDark ? 'Switch to light mode' : 'Switch to dark mode'}
24+
title={isDark ? 'Switch to light mode' : 'Switch to dark mode'}
2225
>
23-
{isDark ? 'LIGHT' : 'DARK'}
26+
{isDark ? (
27+
<SunIcon size={20} weight="regular" className="text-foreground" />
28+
) : (
29+
<MoonIcon size={20} weight="regular" className="text-foreground" />
30+
)}
2431
</button>
2532
);
2633
};

app/globals.css

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,30 @@
3131
}
3232

3333
body {
34-
font-family: 'IBM Plex Mono', monospace!important;
35-
font-weight: 500!important;
34+
font-family: 'IBM Plex Mono', monospace !important;
35+
font-weight: 500 !important;
3636
}
3737

38-
h1, h2, h3, h4, h5, h6 {
39-
font-family: 'Azeret Mono Variable', monospace!important;
38+
h1,
39+
h2,
40+
h3,
41+
h4,
42+
h5,
43+
h6 {
44+
font-family: 'Azeret Mono Variable', monospace !important;
4045
}
4146

42-
p, span, a, label, input, textarea, button, select, option {
43-
font-family: 'IBM Plex Mono', monospace!important;
44-
font-weight: 500!important;
47+
p,
48+
span,
49+
a,
50+
label,
51+
input,
52+
textarea,
53+
button,
54+
select,
55+
option {
56+
font-family: 'IBM Plex Mono', monospace !important;
57+
font-weight: 500 !important;
4558
}
4659

4760
@layer utilities {
@@ -51,12 +64,18 @@ p, span, a, label, input, textarea, button, select, option {
5164
}
5265

5366
.border-border {
54-
border-color: var(--box-border-color, var(--foreground2))!important;
67+
border-color: var(--box-border-color, var(--foreground2)) !important;
5568
}
5669

5770
.tui-scrollbar {
5871
scrollbar-width: auto !important;
59-
padding-right: 15px;
72+
padding-right: 5px;
73+
}
74+
75+
@media (min-width: 992px) {
76+
.tui-scrollbar {
77+
padding-right: 15px;
78+
}
6079
}
6180

6281
.tui-scrollbar::-webkit-scrollbar {
@@ -217,4 +236,4 @@ p, span, a, label, input, textarea, button, select, option {
217236
margin-left: 0 !important;
218237
}
219238
}
220-
}
239+
}

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const metadata: Metadata = {
3131
telephone: false,
3232
},
3333
icons: {
34-
icon: "/logo.png",
34+
icon: "/favicon.png",
3535
shortcut: "/logo.png",
3636
apple: "/logo.png",
3737
},

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default async function Home() {
7878
<Logo size={48} showGlow={true} />
7979
<div>
8080
<h1 className="text-xl sm:text-2xl lg:text-3xl font-bold terminal-font uppercase">
81-
Cr*nMaster
81+
Cr<span className="text-status-error">*</span>nMaster
8282
</h1>
8383
<p className="text-xs terminal-font flex items-center gap-2">
8484
{t("common.version").replace("{version}", version)}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"proper-lockfile": "^4.1.2",
4545
"react": "^18",
4646
"react-dom": "^18",
47-
"react-icons": "^5.5.0",
4847
"react-syntax-highlighter": "^15.6.1",
4948
"systeminformation": "^5.27.11",
5049
"tailwind-merge": "^2.0.0",

0 commit comments

Comments
 (0)