From 1b0f5ac980b1d21c6fe0a3bd6311dec9bc0bb25f Mon Sep 17 00:00:00 2001 From: Marcus Quinn Date: Sun, 16 Mar 2025 05:34:51 +0000 Subject: [PATCH] Fix plugin grid layout to show exactly two per row and remove divider lines --- admin/css/wp-allstars-plugins.css | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/admin/css/wp-allstars-plugins.css b/admin/css/wp-allstars-plugins.css index abc96f9..0a95343 100644 --- a/admin/css/wp-allstars-plugins.css +++ b/admin/css/wp-allstars-plugins.css @@ -27,9 +27,9 @@ } #the-list { - display: flex; - flex-wrap: wrap; + display: block; margin: 0 -8px; /* Negative margin to offset padding */ + overflow: hidden; /* Clearfix for floats */ } /* Plugin Cards */ @@ -42,6 +42,11 @@ position: relative; display: flex; flex-direction: column; + float: left; +} + +.plugin-card:nth-child(2n+1) { + clear: left; } .plugin-card .plugin-card-inner { @@ -121,7 +126,6 @@ clear: both; padding: 12px 20px; background-color: #f6f7f7; - border-top: 1px solid #dcdcde; display: flex; flex-wrap: wrap; border-radius: 0 0 3px 3px; @@ -475,11 +479,6 @@ .plugin-card-bottom > div { padding-top: 10px; padding-bottom: 10px; - border-top: 1px solid #dcdcde; - } - - .plugin-card-bottom > div:first-child { - border-top: none; } .column-downloaded,