From bf726bf86377806f58b850e0fd1a0395301342b9 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Sat, 1 Mar 2025 06:05:53 +0800 Subject: [PATCH] opt: add system app menu --- module/webui/index.html | 2 +- module/webui/scripts/menu_option.js | 2 +- module/webui/styles/system_app.css | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/module/webui/index.html b/module/webui/index.html index 541c2fe..15bd01e 100644 --- a/module/webui/index.html +++ b/module/webui/index.html @@ -362,7 +362,7 @@
- +

diff --git a/module/webui/scripts/menu_option.js b/module/webui/scripts/menu_option.js index 23e8818..0d80055 100644 --- a/module/webui/scripts/menu_option.js +++ b/module/webui/scripts/menu_option.js @@ -105,7 +105,7 @@ export async function setupSystemAppMenu() { // Add system app button document.getElementById("add-system-app-button").addEventListener("click", async () => { const input = document.getElementById("system-app-input"); - const packageName = input.value; + const packageName = input.value.trim(); if (packageName) { try { const result = await execCommand(`pm list packages -s | grep -q ${packageName} || echo "false"`); diff --git a/module/webui/styles/system_app.css b/module/webui/styles/system_app.css index 0eeb9e7..2af2a37 100644 --- a/module/webui/styles/system_app.css +++ b/module/webui/styles/system_app.css @@ -24,7 +24,7 @@ overflow-y: scroll; padding: 30px; background-color: #fff; - border-radius: 10px; + border-radius: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } @@ -54,7 +54,7 @@ } .add-system-app-button { - margin-top: 10px; + margin-top: 15px; width: 100%; padding: 12px; border: none; @@ -67,8 +67,9 @@ } .current-system-app-list { - margin-top: 20px; + margin-top: 25px; margin-bottom: 10px; + user-select: none; } .current-system-app-list-content {