Skip to content

Commit 4cdeb8e

Browse files
committed
fix: improve status bar display and scrollbar styling
- Restore status bar word count by fixing NotesPanel syntax error - Remove note ID from status bar to reduce clutter - Add cache clearing for production Electron app to ensure latest version - Simplify scrollbar styling with proper light/dark mode colors - Add code quality and commit activity badges to README
1 parent 18c1f68 commit 4cdeb8e

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77
[![CI](https://github.com/typelets/typelets-app/actions/workflows/release.yml/badge.svg)](https://github.com/typelets/typelets-app/actions)
88
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
9+
[![Code Quality](https://img.shields.io/codefactor/grade/github/typelets/typelets-app?style=for-the-badge)](https://www.codefactor.io/repository/github/typelets/typelets-app)
10+
[![Commit Activity](https://img.shields.io/github/commit-activity/m/typelets/typelets-app?style=for-the-badge)](https://github.com/typelets/typelets-app/commits/main)
911

1012
[![React](https://img.shields.io/badge/React-19-blue?logo=react)](https://react.dev/)
1113
[![TypeScript](https://img.shields.io/badge/TypeScript-5.8-blue?logo=typescript)](https://www.typescriptlang.org/)

apps/desktop/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ function createWindow(): void {
3131
show: true
3232
});
3333

34+
// Always clear cache to ensure latest version
35+
mainWindow.webContents.session.clearCache();
36+
3437
if (isDev) {
35-
mainWindow.webContents.session.clearCache();
3638
mainWindow.webContents.openDevTools();
3739
}
3840

src/index.css

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -131,42 +131,35 @@
131131
font-family: var(--font-sans);
132132
}
133133

134-
/* Chrome scrollbar styling for Windows */
135-
* {
136-
scrollbar-width: thin;
137-
scrollbar-color: oklch(0.556 0 0) transparent;
138-
}
139-
140-
.dark * {
141-
scrollbar-color: oklch(0.556 0 0) transparent;
142-
}
143-
144-
/* Webkit scrollbars for Chrome/Safari */
134+
/* Simple scrollbar styling */
145135
*::-webkit-scrollbar {
146136
width: 8px;
147137
height: 8px;
148138
}
149139

150140
*::-webkit-scrollbar-track {
151-
background: transparent;
141+
background: #f1f1f1;
152142
}
153143

154144
*::-webkit-scrollbar-thumb {
155-
background-color: oklch(0.556 0 0);
145+
background: #c1c1c1;
156146
border-radius: 4px;
157-
border: 2px solid transparent;
158-
background-clip: content-box;
159147
}
160148

161149
*::-webkit-scrollbar-thumb:hover {
162-
background-color: oklch(0.708 0 0);
150+
background: #a8a8a8;
151+
}
152+
153+
/* Dark mode */
154+
.dark *::-webkit-scrollbar-track {
155+
background: #2a2a2a;
163156
}
164157

165158
.dark *::-webkit-scrollbar-thumb {
166-
background-color: oklch(0.708 0 0);
159+
background: #555;
167160
}
168161

169162
.dark *::-webkit-scrollbar-thumb:hover {
170-
background-color: oklch(0.556 0 0);
163+
background: #777;
171164
}
172165
}

0 commit comments

Comments
 (0)