From 0a4827fa3e1651a83d0f4ed716bcc50fd4a4bbf0 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 7 Dec 2023 01:50:03 +0100 Subject: [PATCH 1/3] wrap in lba as the original wide theme was --- assets/css/blue_wide/overrides.css | 4 ++-- assets/css/cosmo_wide/overrides.css | 9 +++++++++ assets/css/cyborg_wide/overrides.css | 4 ++-- assets/css/darkly_wide/overrides.css | 4 ++-- assets/css/default_wide/overrides.css | 4 ++-- assets/css/superhero_wide/overrides.css | 4 ++-- 6 files changed, 19 insertions(+), 10 deletions(-) diff --git a/assets/css/blue_wide/overrides.css b/assets/css/blue_wide/overrides.css index 29fdcde7..3fc4427f 100644 --- a/assets/css/blue_wide/overrides.css +++ b/assets/css/blue_wide/overrides.css @@ -160,11 +160,11 @@ div.alert-danger { #qsoList_wrapper th { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #qsoList_wrapper td { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #lotw_badge { diff --git a/assets/css/cosmo_wide/overrides.css b/assets/css/cosmo_wide/overrides.css index b4f427bf..39e6e035 100644 --- a/assets/css/cosmo_wide/overrides.css +++ b/assets/css/cosmo_wide/overrides.css @@ -80,3 +80,12 @@ #qsomap { height: 400px !important; } + +#qsoList_wrapper th { + text-align: left !important; + white-space: pre-wrap; +} +#qsoList_wrapper td { + text-align: left !important; + white-space: pre-wrap; +} \ No newline at end of file diff --git a/assets/css/cyborg_wide/overrides.css b/assets/css/cyborg_wide/overrides.css index ac227245..7769f4be 100644 --- a/assets/css/cyborg_wide/overrides.css +++ b/assets/css/cyborg_wide/overrides.css @@ -166,11 +166,11 @@ path.grid-worked { #qsoList_wrapper th { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #qsoList_wrapper td { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } @media (min-width: 1500px) { diff --git a/assets/css/darkly_wide/overrides.css b/assets/css/darkly_wide/overrides.css index 3625192a..0eeb6a9c 100644 --- a/assets/css/darkly_wide/overrides.css +++ b/assets/css/darkly_wide/overrides.css @@ -179,11 +179,11 @@ div.alert-danger { #qsoList_wrapper th { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #qsoList_wrapper td { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } @media (min-width: 992px) { diff --git a/assets/css/default_wide/overrides.css b/assets/css/default_wide/overrides.css index 41b83a6d..1550b681 100644 --- a/assets/css/default_wide/overrides.css +++ b/assets/css/default_wide/overrides.css @@ -41,12 +41,12 @@ thead > tr > td { #qsoList_wrapper th { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #qsoList_wrapper td { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } @media (min-width: 1500px) { diff --git a/assets/css/superhero_wide/overrides.css b/assets/css/superhero_wide/overrides.css index 7d6ba817..c4a6997e 100644 --- a/assets/css/superhero_wide/overrides.css +++ b/assets/css/superhero_wide/overrides.css @@ -202,11 +202,11 @@ div.alert-danger { #qsoList_wrapper th { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #qsoList_wrapper td { text-align: left !important; - white-space: nowrap; + white-space: pre-wrap; } #lotw_badge { From 1931f41ad0c4a9d6aebb67eb471a1cd8214506a3 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 7 Dec 2023 01:52:03 +0100 Subject: [PATCH 2/3] just because I like case-sensitivity in SQL :-) --- application/migrations/157_wide_themes.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/migrations/157_wide_themes.php b/application/migrations/157_wide_themes.php index 66ea5af0..988cc592 100644 --- a/application/migrations/157_wide_themes.php +++ b/application/migrations/157_wide_themes.php @@ -20,11 +20,11 @@ class Migration_wide_themes extends CI_Migration public function down() { - $this->db->query("delete from themes where foldername = 'blue_wide';"); - $this->db->query("delete from themes where foldername = 'cosmo_wide';"); - $this->db->query("delete from themes where foldername = 'cyborg_wide';"); - $this->db->query("delete from themes where foldername = 'darkly_wide';"); - $this->db->query("delete from themes where foldername = 'default_wide';"); - $this->db->query("delete from themes where foldername = 'superhero_wide';"); + $this->db->query("DELETE FROM themes WHERE foldername = 'blue_wide';"); + $this->db->query("DELETE FROM themes WHERE foldername = 'cosmo_wide';"); + $this->db->query("DELETE FROM themes WHERE foldername = 'cyborg_wide';"); + $this->db->query("DELETE FROM themes WHERE foldername = 'darkly_wide';"); + $this->db->query("DELETE FROM themes WHERE foldername = 'default_wide';"); + $this->db->query("DELETE FROM themes WHERE foldername = 'superhero_wide';"); } } From 7493b6700fc2c62b3a498804318bf8da4accb50f Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 7 Dec 2023 02:05:56 +0100 Subject: [PATCH 3/3] prevent killing cloudlog when migrate down --- application/migrations/157_wide_themes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/migrations/157_wide_themes.php b/application/migrations/157_wide_themes.php index 988cc592..95bf2fc2 100644 --- a/application/migrations/157_wide_themes.php +++ b/application/migrations/157_wide_themes.php @@ -21,10 +21,16 @@ class Migration_wide_themes extends CI_Migration public function down() { $this->db->query("DELETE FROM themes WHERE foldername = 'blue_wide';"); + $this->db->query("UPDATE users SET user_stylesheet = 'blue' WHERE user_stylesheet = 'blue_wide'"); $this->db->query("DELETE FROM themes WHERE foldername = 'cosmo_wide';"); + $this->db->query("UPDATE users SET user_stylesheet = 'cosmo' WHERE user_stylesheet = 'cosmo_wide'"); $this->db->query("DELETE FROM themes WHERE foldername = 'cyborg_wide';"); + $this->db->query("UPDATE users SET user_stylesheet = 'cyborg' WHERE user_stylesheet = 'cyborg_wide'"); $this->db->query("DELETE FROM themes WHERE foldername = 'darkly_wide';"); + $this->db->query("UPDATE users SET user_stylesheet = 'darkly' WHERE user_stylesheet = 'darkly_wide'"); $this->db->query("DELETE FROM themes WHERE foldername = 'default_wide';"); + $this->db->query("UPDATE users SET user_stylesheet = 'default' WHERE user_stylesheet = 'default_wide'"); $this->db->query("DELETE FROM themes WHERE foldername = 'superhero_wide';"); + $this->db->query("UPDATE users SET user_stylesheet = 'superhero' WHERE user_stylesheet = 'default_wide'"); } }