Skip to content

Commit 840eb01

Browse files
committed
Don't hardcode the logo height in HTML - Move it to CSS
1 parent 819c7cb commit 840eb01

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

assets/css/admin.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ button.prpl-info-icon {
177177
flex-wrap: wrap;
178178
justify-content: space-between;
179179
align-items: center;
180+
181+
.prpl-header-logo img {
182+
height: 100px;
183+
}
180184
}
181185

182186
.prpl-header-logo svg {

classes/ui/class-branding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function the_logo(): void {
104104
if ( $response ) {
105105
$media = \json_decode( $response, true );
106106
if ( isset( $media['source_url'] ) ) {
107-
echo '<img src="' . \esc_url( $media['source_url'] ) . '" alt="Logo" style="height:100px;"/>';
107+
echo '<img src="' . \esc_url( $media['source_url'] ) . '" alt="Logo"/>';
108108
return;
109109
}
110110
}

0 commit comments

Comments
 (0)