GeezerVison is showing github.com — Sidebar CSS Update · ArcaneSphere/SovereignSearch@c51a835
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: index.html +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 48 | 48 |
| 49 | 49 | <!-- ===== SIDEBAR (Bookmarks) ===== --> | 50 | 50 | <aside id="sidebar" class="collapsed"> | 51 | | - <h3>Managers</h3> | | 51 | + <h3>Menu</h3> | 52 | 52 | <button data-manager="settings">Settings</button> | 53 | 53 | <button data-manager="gnomon">Gnomon</button> | 54 | | - <button data-manager="webtorrent">WebTorrent</button> | | 54 | + <button data-manager="readme">Readme</button> | 55 | 55 |
| 56 | 56 | <h3>Node Bookmarks</h3> | 57 | 57 | <div id="sidebarNodeList"></div> | |
Collapse file Copy file name to clipboardExpand all lines: main.js +14-3Lines changed: 14 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -264,20 +264,29 @@ function createWindow() { | 264 | 264 | mainWindow = new BrowserWindow({ | 265 | 265 | width: 1400, | 266 | 266 | height: 960, | | 267 | + show: false, | 267 | 268 | webPreferences: { | 268 | 269 | preload: path.join(__dirname, "preload.js"), | 269 | 270 | contextIsolation: true, | 270 | 271 | nodeIntegration: false, | 271 | | - webSecurity: false | | 272 | + webSecurity: true | 272 | 273 | } | 273 | 274 | }); | 274 | 275 |
| | 276 | + | | 277 | + | 275 | 278 | const indexPath = path.join(__dirname, "index.html"); | 276 | | - mainWindow.loadFile(indexPath).catch(err => console.error(err)); | | 279 | + mainWindow.loadFile(indexPath).catch(console.error); | | 280 | + | | 281 | + mainWindow.once("ready-to-show", () => { | | 282 | + mainWindow.maximize(); | | 283 | + mainWindow.show(); | | 284 | + }); | 277 | 285 |
| 278 | 286 | mainWindow.on("resize", () => updateActiveBrowserViewBounds()); | 279 | 287 | } | 280 | 288 |
| | 289 | + | 281 | 290 | // ---------------- BrowserView helpers ---------------- | 282 | 291 | function computeBrowserViewBounds() { | 283 | 292 | if (!mainWindow) return { x: 0, y: 0, width: 0, height: 0 }; | @@ -305,7 +314,7 @@ function showModalOverlay(modalBounds, bookmarkType, bookmarkValue) { | 305 | 314 | preload: path.join(__dirname, "modal-preload.js"), | 306 | 315 | contextIsolation: true, | 307 | 316 | nodeIntegration: false, | 308 | | - webSecurity: false | | 317 | + webSecurity: true | 309 | 318 | } | 310 | 319 | }); | 311 | 320 |
| @@ -379,8 +388,10 @@ ipcMain.handle("tela:start", async (event, { node, scid }) => { | 379 | 388 |
| 380 | 389 | const view = new BrowserView({ | 381 | 390 | webPreferences: { | | 391 | + sandbox: true, | 382 | 392 | contextIsolation: true, | 383 | 393 | nodeIntegration: false, | | 394 | + webSecurity: true, | 384 | 395 | preload: path.join(__dirname, 'wallet-preload.js') | 385 | 396 | } | 386 | 397 | }); | |
Collapse file Copy file name to clipboard +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { createSettingsManager } from './settings.js'; | 2 | 2 | import { createGnomonManager } from './gnomon.js'; | 3 | | -import { createWebTorrentManager } from './webtorrent.js'; | | 3 | +import { createReadMe } from './readme.js'; | 4 | 4 |
| 5 | 5 | export const managers = { | 6 | 6 | settings: { | @@ -9,8 +9,8 @@ export const managers = { | 9 | 9 | gnomon: { | 10 | 10 | create: createGnomonManager | 11 | 11 | }, | 12 | | - webtorrent: { | 13 | | - create: createWebTorrentManager | | 12 | + readme: { | | 13 | + create: createReadMe | 14 | 14 | } | 15 | 15 | }; | 16 | 16 |
|
Collapse file Copy file name to clipboard +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +export function createReadMe() { | | 2 | + const el = document.createElement('div'); | | 3 | + el.className = "manager-page readme-document"; | | 4 | + | | 5 | + el.innerHTML = ` | | 6 | + <h2>Readme</h2> | | 7 | + `; | | 8 | + return el; | | 9 | +} | | 10 | + |
Collapse file Copy file name to clipboardExpand all lines: managers/webtorrent.js -11Lines changed: 0 additions & 11 deletions Collapse file Copy file name to clipboardExpand all lines: renderer.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -58,7 +58,7 @@ document.addEventListener("DOMContentLoaded", () => { | 58 | 58 | list.forEach(b => { | 59 | 59 | const div = document.createElement("div"); | 60 | 60 | div.className = "bookmark-item"; | 61 | | - div.innerHTML = `<span>${b.name}</span><button class="bookmark-delete">❌</button>`; | | 61 | + div.innerHTML = `<span class="bookmark-name">${b.name}</span><button class="bookmark-delete">✖</button>`; | 62 | 62 |
| 63 | 63 | div.querySelector("span").onclick = () => { | 64 | 64 | nodeInput.value = b.node; | @@ -80,7 +80,7 @@ document.addEventListener("DOMContentLoaded", () => { | 80 | 80 | list.forEach(b => { | 81 | 81 | const div = document.createElement("div"); | 82 | 82 | div.className = "bookmark-item"; | 83 | | - div.innerHTML = `<span>${b.name}</span><button class="bookmark-delete">❌</button>`; | | 83 | + div.innerHTML = `<span class="bookmark-name">${b.name}</span><button class="bookmark-delete">✖</button>`; | 84 | 84 |
| 85 | 85 | div.querySelector("span").onclick = () => { | 86 | 86 | scidInput.value = b.scid; | |
Collapse file Copy file name to clipboardExpand all lines: style.css +59-3Lines changed: 59 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -207,26 +207,57 @@ html, body { | 207 | 207 | } | 208 | 208 |
| 209 | 209 | /* ========================================================= | 210 | | - BOOKMARKS | | 210 | + BOOKMARK ITEM | 211 | 211 | ========================================================= */ | 212 | 212 |
| 213 | 213 | .bookmark-item { | 214 | | - padding: 6px 10px; | | 214 | + padding: 8px 12px; /* slightly more spacing */ | 215 | 215 | display: flex; | 216 | 216 | justify-content: space-between; | | 217 | + align-items: center; /* vertical centering */ | 217 | 218 | cursor: pointer; | 218 | 219 | color: var(--text-primary); | | 220 | + background: var(--bg-panel); /* panel bg for contrast */ | | 221 | + border-radius: 6px; /* subtle rounded corners */ | | 222 | + font-size: 14px; | | 223 | + font-weight: 500; | | 224 | + overflow: hidden; | | 225 | + white-space: nowrap; | | 226 | + text-overflow: ellipsis; | | 227 | + transition: background 0.2s ease, color 0.2s ease; | 219 | 228 | } | 220 | 229 |
| 221 | 230 | .bookmark-item:hover { | 222 | 231 | background: var(--bg-hover); | | 232 | + color: var(--text-primary); | 223 | 233 | } | 224 | 234 |
| | 235 | +.bookmark-item.active { | | 236 | + background: var(--accent); | | 237 | + color: #fff; | | 238 | +} | | 239 | + | | 240 | +/* Bookmark name text */ | | 241 | +.bookmark-name { | | 242 | + flex: 1; /* take remaining space */ | | 243 | + overflow: hidden; | | 244 | + text-overflow: ellipsis; | | 245 | + white-space: nowrap; | | 246 | +} | | 247 | + | | 248 | +/* Delete button */ | 225 | 249 | .bookmark-delete { | 226 | | - color: red; | | 250 | + color: #1c010137; /* more subtle than pure red */ | 227 | 251 | border: none; | 228 | 252 | background: none; | 229 | 253 | cursor: pointer; | | 254 | + font-size: 14px; | | 255 | + margin-left: 8px; | | 256 | + transition: color 0.2s ease; | | 257 | +} | | 258 | + | | 259 | +.bookmark-delete:hover { | | 260 | + color: #ff0000; | 230 | 261 | } | 231 | 262 |
| 232 | 263 | /* ========================================================= | @@ -438,6 +469,29 @@ html, body { | 438 | 469 | font-size: 16px; | 439 | 470 | } | 440 | 471 |
| | 472 | +/* ========================================================= | | 473 | + README DOCUMENT | | 474 | + ========================================================= */ | | 475 | + | | 476 | +.readme-document { | | 477 | + padding: 20px 40px; | | 478 | + display: flex; | | 479 | + flex-direction: column; | | 480 | + gap: 20px; | | 481 | +} | | 482 | + | | 483 | +.readme-document h2 { | | 484 | + margin-bottom: 20px; | | 485 | +} | | 486 | + | | 487 | +.readme-row { | | 488 | + display: flex; | | 489 | + align-items: center; | | 490 | + gap: 12px; | | 491 | + font-size: 16px; | | 492 | +} | | 493 | + | | 494 | + | 441 | 495 | /* ========================================================= | 442 | 496 | MANUAL THEME OVERRIDES (for toggle) | 443 | 497 | ========================================================= */ | @@ -448,6 +502,7 @@ html, body { | 448 | 502 | --bg-panel: #ffffff; | 449 | 503 | --bg-topbar: #f0f0f0; | 450 | 504 | --bg-sidebar: #f8f8f8; | | 505 | + --bg-hover: #eaeaea; | 451 | 506 | --text-primary: #111111; | 452 | 507 | --text-secondary: #555555; | 453 | 508 | --border-color: #cccccc; | @@ -460,6 +515,7 @@ html, body { | 460 | 515 | --bg-panel: #141414; | 461 | 516 | --bg-topbar: #1a1a1a; | 462 | 517 | --bg-sidebar: #111111; | | 518 | + --bg-hover: #222222; | 463 | 519 | --text-primary: #ffffff; | 464 | 520 | --text-secondary: #aaaaaa; | 465 | 521 | --border-color: #333333; | |
|