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 — fix(browser): the new tab page's prompt sits 80 pt below the top as o… · anomalyco/opencode-rune@93f2096

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • plugins/browser
    • panel.luau
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎plugins/browser/panel.luau‎

Copy file name to clipboardExpand all lines: plugins/browser/panel.luau
+15-17Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -462,19 +462,19 @@ end
462462
-- The new tab page: Open a page and what it's for, top-aligned; or the newest visits.
463463
local function home(env: Env, view: View, tab: BrowserTab, width: number): ui.Node
464464
local visits = env.visits()
465-
-- `panel.tsx:1474-1477`: the sign-in offer heads the new tab page while it offers.
465+
-- `panel.tsx:1474-1477`: the sign-in offer heads the new tab page while it offers. With no offer the page holds
466+
-- nothing above the prompt: a `ui.spacer` stand-in is flexible space and pushed the prompt to the pane's bottom.
466467
local offer = if env.signIns then env.signIns(view, tab, "card") else nil
468+
local items: { ui.Node } = if offer then { offer } else {}
467469
if #visits == 0 then
468-
return ui.col({ key = "browser-home", dir = "auto", w = "full", grow = 1, minH = 0, scrollY = true, align = "center" }, {
469-
offer or ui.spacer({ w = 0, h = 0 } :: any),
470-
ui.col({ w = "full", maxW = 360, px = 24, pt = 80, gap = 16, align = "center" }, {
471-
ui.icon("outline-globe", { size = 20, color = "icon-weak" }),
472-
ui.col({ w = "full", gap = 8, align = "center" }, {
473-
ui.text(env.I18n:T("home.title"), { size = 13, weight = "medium", lineHeight = 16, color = "text-chrome", textAlign = "center" }),
474-
ui.text(env.I18n:T("home.description"), { size = 13, weight = "regular", lineHeight = 16, color = "text-muted", textAlign = "center", wrap = true }),
475-
}),
470+
table.insert(items, ui.col({ key = "browser-home-prompt", w = "full", maxW = 360, px = 24, pt = 80, gap = 16, align = "center" }, {
471+
ui.icon("outline-globe", { size = 20, color = "icon-weak" }),
472+
ui.col({ w = "full", gap = 8, align = "center" }, {
473+
ui.text(env.I18n:T("home.title"), { size = 13, weight = "medium", lineHeight = 16, color = "text-chrome", textAlign = "center" }),
474+
ui.text(env.I18n:T("home.description"), { size = 13, weight = "regular", lineHeight = 16, color = "text-muted", textAlign = "center", wrap = true }),
476475
}),
477-
})
476+
}))
477+
return ui.col({ key = "browser-home", dir = "auto", w = "full", grow = 1, minH = 0, scrollY = true, align = "center" }, items)
478478
end
479479
local listW = math.min(608, width) - 48
480480
local rows: { ui.Node } = {}
@@ -486,13 +486,11 @@ local function home(env: Env, view: View, tab: BrowserTab, width: number): ui.No
486486
env.act("go", tab, visit.url)
487487
end))
488488
end
489-
return ui.col({ key = "browser-home", dir = "auto", w = "full", grow = 1, minH = 0, scrollY = true, align = "center" }, {
490-
offer or ui.spacer({ w = 0, h = 0 } :: any),
491-
ui.col({ w = "full", maxW = 608, px = 24, pt = 48, pb = 40, gap = 16 }, {
492-
ui.text(env.I18n:T("home.recent"), { size = 13, weight = "regular", lineHeight = 16, color = "text-muted" }),
493-
ui.col({ w = "full", gap = 8 }, rows),
494-
}),
495-
})
489+
table.insert(items, ui.col({ key = "browser-home-recent", w = "full", maxW = 608, px = 24, pt = 48, pb = 40, gap = 16 }, {
490+
ui.text(env.I18n:T("home.recent"), { size = 13, weight = "regular", lineHeight = 16, color = "text-muted" }),
491+
ui.col({ w = "full", gap = 8 }, rows),
492+
}))
493+
return ui.col({ key = "browser-home", dir = "auto", w = "full", grow = 1, minH = 0, scrollY = true, align = "center" }, items)
496494
end
497495

498496
-- Plain-language failed-load error page (`failure.ts`, `failure-view.tsx`, `story-browser-load-failed-dark.png`).

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.