From 1779da3be06a0ea53b4857ee7182d07d7ee5f590 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 14 Apr 2024 09:52:00 +1000 Subject: [PATCH] CSS icon button fix #629 & DB fucntion test --- front/css/app.css | 5 +++++ front/deviceDetails.php | 2 +- front/php/templates/language/en_us.json | 2 +- front/php/templates/notification.php | 2 +- server/database.py | 8 +++++++- server/helper.py | 7 +++++++ 6 files changed, 22 insertions(+), 4 deletions(-) diff --git a/front/css/app.css b/front/css/app.css index 0669546f..d0d81e79 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -942,6 +942,11 @@ input[readonly] { height: 1.5em !important; } +#modal-input-textarea +{ + width: 100%; +} + /* ----------------------------------------------------------------- */ /* NETWORK page */ diff --git a/front/deviceDetails.php b/front/deviceDetails.php index 2d1af76d..fa8be620 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -1652,7 +1652,7 @@ function askAddIcon () { } // Add new icon as base64 string - showModalInput ('', '', + showModalInput (' ', '', '', '', 'addAsBase64'); } diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json index 8a506cb0..976e38bd 100755 --- a/front/php/templates/language/en_us.json +++ b/front/php/templates/language/en_us.json @@ -168,7 +168,7 @@ "DevDetail_Vendor_hover": "Vendor should be auto-detected. You can overwrite or add your custom value.", "DevDetail_WOL_Title": " Wake-on-LAN", "DevDetail_button_AddIcon": "Add new Icon", - "DevDetail_button_AddIcon_Help": "Paste in an SVG html tag or Font Awesome icon. Read the Icons docs for details.", + "DevDetail_button_AddIcon_Help": "Paste in an SVG html tag or Font Awesome html tag icon. Read the Icons docs for details.", "DevDetail_button_AddIcon_Tooltip": "Add a new Icon to this device that is not yet available in the dropdown.", "DevDetail_button_Delete": "Delete Device", "DevDetail_button_DeleteEvents": "Delete Events", diff --git a/front/php/templates/notification.php b/front/php/templates/notification.php index 588ebd5e..2bf69f1a 100755 --- a/front/php/templates/notification.php +++ b/front/php/templates/notification.php @@ -95,7 +95,7 @@ -