GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sidebar CSS Update · ArcaneSphere/SovereignSearch@c51a835

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • index.html
  • main.js
  • managers
    • index.js
    • readme.js
    • webtorrent.js
  • renderer.js
  • style.css
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎index.html‎

Copy file name to clipboardExpand all lines: index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848

4949
<!-- ===== SIDEBAR (Bookmarks) ===== -->
5050
<aside id="sidebar" class="collapsed">
51-
<h3>Managers</h3>
51+
<h3>Menu</h3>
5252
<button data-manager="settings">Settings</button>
5353
<button data-manager="gnomon">Gnomon</button>
54-
<button data-manager="webtorrent">WebTorrent</button>
54+
<button data-manager="readme">Readme</button>
5555

5656
<h3>Node Bookmarks</h3>
5757
<div id="sidebarNodeList"></div>
Collapse file

‎main.js‎

Copy file name to clipboardExpand all lines: main.js
+14-3Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,20 +264,29 @@ function createWindow() {
264264
mainWindow = new BrowserWindow({
265265
width: 1400,
266266
height: 960,
267+
show: false,
267268
webPreferences: {
268269
preload: path.join(__dirname, "preload.js"),
269270
contextIsolation: true,
270271
nodeIntegration: false,
271-
webSecurity: false
272+
webSecurity: true
272273
}
273274
});
274275

276+
277+
275278
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+
});
277285

278286
mainWindow.on("resize", () => updateActiveBrowserViewBounds());
279287
}
280288

289+
281290
// ---------------- BrowserView helpers ----------------
282291
function computeBrowserViewBounds() {
283292
if (!mainWindow) return { x: 0, y: 0, width: 0, height: 0 };
@@ -305,7 +314,7 @@ function showModalOverlay(modalBounds, bookmarkType, bookmarkValue) {
305314
preload: path.join(__dirname, "modal-preload.js"),
306315
contextIsolation: true,
307316
nodeIntegration: false,
308-
webSecurity: false
317+
webSecurity: true
309318
}
310319
});
311320

@@ -379,8 +388,10 @@ ipcMain.handle("tela:start", async (event, { node, scid }) => {
379388

380389
const view = new BrowserView({
381390
webPreferences: {
391+
sandbox: true,
382392
contextIsolation: true,
383393
nodeIntegration: false,
394+
webSecurity: true,
384395
preload: path.join(__dirname, 'wallet-preload.js')
385396
}
386397
});
Collapse file

‎managers/index.js‎

Copy file name to clipboard
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createSettingsManager } from './settings.js';
22
import { createGnomonManager } from './gnomon.js';
3-
import { createWebTorrentManager } from './webtorrent.js';
3+
import { createReadMe } from './readme.js';
44

55
export const managers = {
66
settings: {
@@ -9,8 +9,8 @@ export const managers = {
99
gnomon: {
1010
create: createGnomonManager
1111
},
12-
webtorrent: {
13-
create: createWebTorrentManager
12+
readme: {
13+
create: createReadMe
1414
}
1515
};
1616

Collapse file

‎managers/readme.js‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

‎managers/webtorrent.js‎

Copy file name to clipboardExpand all lines: managers/webtorrent.js
-11Lines changed: 0 additions & 11 deletions
This file was deleted.
Collapse file

‎renderer.js‎

Copy file name to clipboardExpand all lines: renderer.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ document.addEventListener("DOMContentLoaded", () => {
5858
list.forEach(b => {
5959
const div = document.createElement("div");
6060
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>`;
6262

6363
div.querySelector("span").onclick = () => {
6464
nodeInput.value = b.node;
@@ -80,7 +80,7 @@ document.addEventListener("DOMContentLoaded", () => {
8080
list.forEach(b => {
8181
const div = document.createElement("div");
8282
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>`;
8484

8585
div.querySelector("span").onclick = () => {
8686
scidInput.value = b.scid;
Collapse file

‎style.css‎

Copy file name to clipboardExpand all lines: style.css
+59-3Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,26 +207,57 @@ html, body {
207207
}
208208

209209
/* =========================================================
210-
BOOKMARKS
210+
BOOKMARK ITEM
211211
========================================================= */
212212

213213
.bookmark-item {
214-
padding: 6px 10px;
214+
padding: 8px 12px; /* slightly more spacing */
215215
display: flex;
216216
justify-content: space-between;
217+
align-items: center; /* vertical centering */
217218
cursor: pointer;
218219
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;
219228
}
220229

221230
.bookmark-item:hover {
222231
background: var(--bg-hover);
232+
color: var(--text-primary);
223233
}
224234

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 */
225249
.bookmark-delete {
226-
color: red;
250+
color: #1c010137; /* more subtle than pure red */
227251
border: none;
228252
background: none;
229253
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;
230261
}
231262

232263
/* =========================================================
@@ -438,6 +469,29 @@ html, body {
438469
font-size: 16px;
439470
}
440471

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+
441495
/* =========================================================
442496
MANUAL THEME OVERRIDES (for toggle)
443497
========================================================= */
@@ -448,6 +502,7 @@ html, body {
448502
--bg-panel: #ffffff;
449503
--bg-topbar: #f0f0f0;
450504
--bg-sidebar: #f8f8f8;
505+
--bg-hover: #eaeaea;
451506
--text-primary: #111111;
452507
--text-secondary: #555555;
453508
--border-color: #cccccc;
@@ -460,6 +515,7 @@ html, body {
460515
--bg-panel: #141414;
461516
--bg-topbar: #1a1a1a;
462517
--bg-sidebar: #111111;
518+
--bg-hover: #222222;
463519
--text-primary: #ffffff;
464520
--text-secondary: #aaaaaa;
465521
--border-color: #333333;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.