commit 7a732ea5d5d6e8fbfd5ee75c150b313e30501893
parent b0789a0fd150d146fefe8abf1f2fd35a84b21bd0
Author: Andrew Laack <andrew@laack.co>
Date: Sun, 4 Oct 2026 16:30:33 -0500
Padding on bottom for consistency w/ top
Diffstat:
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/docs/TODO b/docs/TODO
@@ -8,4 +8,15 @@
---
-- bottom loading text / downloaded text -- not red like heading.
+- move all keybindings to shared.cpp
+ - move shared.hpp -> config.hpp
+ - refactor non-runtime configurable values to be set in hpp file
+ - inject these into about://newtab
+
+---
+
+- replace header with issue text when appropriate
+
+---
+
+- consider different sizing for screen to make bottom text look nicer
diff --git a/src/render.cpp b/src/render.cpp
@@ -95,7 +95,7 @@ void draw(DrawState& ds) {
refresh();
return;
}
- if (ds.lines < 3) {
+ if (ds.lines < 5) { // This is the min size that still allows top and bottom padding along with one line of text.
erase();
addstr("Screen height too small.");
refresh();
@@ -142,7 +142,7 @@ void draw(DrawState& ds) {
addstr(std::string(ds.columns, ' ').c_str());
- for (int i = ds.y; i - ds.y < ds.lines - 2 && i < (int)ds.broken.size();
+ for (int i = ds.y; i - ds.y < ds.lines - 4 && i < (int)ds.broken.size();
++i) {
move(i - ds.y + 2, 0);