From 39a07f07b109c86afc7c235b7badb8e808d721d1 Mon Sep 17 00:00:00 2001 From: gebeto Date: Sun, 4 Jan 2026 18:15:24 +0200 Subject: [PATCH] add edit modal basic --- src/main.cpp | 19 ++++----- src/network/html/FilesPage.html | 69 +++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e81448bd..efa2d6e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -289,15 +289,16 @@ void setup() { enterNewActivity(new BootActivity(renderer, mappedInputManager)); APP_STATE.loadFromFile(); - if (APP_STATE.openEpubPath.empty()) { - onGoHome(); - } else { - // Clear app state to avoid getting into a boot loop if the epub doesn't load - const auto path = APP_STATE.openEpubPath; - APP_STATE.openEpubPath = ""; - APP_STATE.saveToFile(); - onGoToReader(path); - } + onGoToFileTransfer(); + // if (APP_STATE.openEpubPath.empty()) { + // onGoHome(); + // } else { + // // Clear app state to avoid getting into a boot loop if the epub doesn't load + // const auto path = APP_STATE.openEpubPath; + // APP_STATE.openEpubPath = ""; + // APP_STATE.saveToFile(); + // onGoToReader(path); + // } // Ensure we're not still holding the power button before leaving setup waitForPowerRelease(); diff --git a/src/network/html/FilesPage.html b/src/network/html/FilesPage.html index 27669de0..2deda858 100644 --- a/src/network/html/FilesPage.html +++ b/src/network/html/FilesPage.html @@ -341,6 +341,21 @@ .actions-col { width: 60px; text-align: center; + display: flex; + } + /* Edit button styles */ + .edit-btn { + background: none; + border: none; + cursor: pointer; + font-size: 1.1em; + padding: 4px 8px; + border-radius: 4px; + color: #95a5a6; + transition: all 0.15s; + } + .edit-btn:hover { + background-color: #fee; } /* Failed uploads banner */ .failed-uploads-banner { @@ -666,6 +681,21 @@ + +