From 47c14e16dc409891a98d942ea88d85d1cd53861d Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Sat, 2 Mar 2024 10:17:44 +0000 Subject: [PATCH] refactored styles to css --- css/zoostyle.css | 12 +++++++++++- ui/Editor.php | 10 +++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/css/zoostyle.css b/css/zoostyle.css index 931fef4e..17a6d9c9 100644 --- a/css/zoostyle.css +++ b/css/zoostyle.css @@ -805,11 +805,21 @@ th.sec { .success { color: #006600; } -.text, .urlValue { +.text { padding: 2px; border: 1px solid #666; border-radius: 3px; } +.text.c2 { + width: 330px; +} +.text.c3 { + width: 220px; +} +.text.duration { + width: 45px; + text-align: right; +} .textsp { border: 1px solid #666; border-radius: 3px; diff --git a/ui/Editor.php b/ui/Editor.php index 0273f6b7..3ef17997 100644 --- a/ui/Editor.php +++ b/ui/Editor.php @@ -1306,7 +1306,7 @@ private function emitTrackList($focusTrack, $isCollection) { Artist" : ""; - $cellWidth = "width:" . ($isCollection ? "220px" : "330px"); + $cellWidth = $isCollection ? "c3" : "c2"; echo "${artistHdr}\n"; @@ -1320,19 +1320,19 @@ private function emitTrackList($focusTrack, $isCollection) { echo ""; echo ""; - echo ""; + echo ""; if($isCollection) { $artist = htmlentities(stripslashes($_POST["artist".$trackNum])); - echo ""; + echo ""; $this->skipVar("artist".$trackNum); } $duration = $_POST["trackDuration$trackNum"]; - echo ""; + echo ""; $url = $_POST["trackUrl$trackNum"]; - echo ""; + echo ""; echo "\n"; }
Track NameTimeURLInsert/Delete Track:  
$trackNum: