From c52bdc9dfc1b65658fbd41ce691f8a18f4e752ee Mon Sep 17 00:00:00 2001 From: Alexandre Vazquez Date: Wed, 2 Jul 2025 16:21:10 +0200 Subject: [PATCH] Replace version buttons with dropdown and align file actions --- frontend/src/App.jsx | 99 ++++++++++++++++++++++++------------------ frontend/src/style.css | 14 +++++- 2 files changed, 70 insertions(+), 43 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 14a0ba8d..303657bc 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -57,6 +57,19 @@ function debounce(fn, delay) { }; } +function setStylesheetVersion(text, version) { + const regex = /]*)>/; + const match = text.match(regex); + if (!match) return text; + let attrs = match[1]; + if (/version=['"][^'"]*['"]/.test(attrs)) { + attrs = attrs.replace(/version=['"][^'"]*['"]/, `version="${version}"`); + } else { + attrs += ` version="${version}"`; + } + return text.replace(regex, ``); +} + const goPro = import.meta.env.VITE_GO_PRO === "true"; function defaultTab() { @@ -351,55 +364,57 @@ export default function App() {
- + > + 📥 + +