Fix theme panel: show Kadence text, remove grey gaps, improve overall styling

This commit is contained in:
Marcus Quinn
2025-03-17 00:25:05 +00:00
parent fe48fa3d52
commit df7ad629c1

View File

@ -1268,8 +1268,8 @@ function wp_allstars_ajax_get_themes() {
<div class="theme-screenshot"> <div class="theme-screenshot">
<img src="<?php echo esc_url($theme_data->screenshot_url); ?>" alt=""> <img src="<?php echo esc_url($theme_data->screenshot_url); ?>" alt="">
</div> </div>
<span class="theme-author"><?php echo esc_html(sprintf(__('By %s'), $author)); ?></span>
<h3 class="theme-name"><?php echo esc_html($theme_data->name); ?></h3> <h3 class="theme-name"><?php echo esc_html($theme_data->name); ?></h3>
<span class="theme-author"><?php echo esc_html(sprintf(__('By %s'), $author)); ?></span>
<div class="theme-actions"> <div class="theme-actions">
<div style="display: flex; justify-content: center; gap: 15px;"> <div style="display: flex; justify-content: center; gap: 15px;">
<?php if (current_user_can('install_themes')): ?> <?php if (current_user_can('install_themes')): ?>
@ -1611,6 +1611,7 @@ function wp_allstars_settings_page() {
box-shadow: 0 1px 3px rgba(0,0,0,0.1); box-shadow: 0 1px 3px rgba(0,0,0,0.1);
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background: #fff;
} }
#wpa-theme-list .theme-screenshot { #wpa-theme-list .theme-screenshot {
height: auto; height: auto;
@ -1633,6 +1634,14 @@ function wp_allstars_settings_page() {
font-size: 18px; font-size: 18px;
padding: 15px; padding: 15px;
margin: 0; margin: 0;
color: #333;
display: block;
}
#wpa-theme-list .theme-author {
display: block;
padding: 0 15px;
color: #555;
margin: 0;
} }
#wpa-theme-list .theme-actions { #wpa-theme-list .theme-actions {
padding: 0; padding: 0;
@ -1657,7 +1666,7 @@ function wp_allstars_settings_page() {
margin: 0; margin: 0;
} }
</style> </style>
<div class="wp-list-table-container" style="max-width: 100%;"> <div class="wp-list-table-container" style="max-width: 100%; background: #fff;">
<div id="wpa-theme-list"></div> <div id="wpa-theme-list"></div>
</div> </div>
</div> </div>