Skip to content

Commit 3317dbc

Browse files
committed
style fixes
1 parent 6c8e97e commit 3317dbc

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

plugins/wpgraphql-logging/assets/css/view/wp-graphql-logging-view.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,21 @@ pre.wpgraphql-logging-list-table-query {
2626
border-radius: 4px;
2727
max-height: 20px;
2828
}
29+
30+
.wpgraphql-logging-filters input.wpgraphql-logging-datepicker,
31+
.wpgraphql-logging-filters select[name="level_filter"] {
32+
width: 120px;
33+
}
34+
35+
.wpgraphql-logging-filters {
36+
display: inline-flex;
37+
align-items: center;
38+
gap: 8px;
39+
margin-right: 10px;
40+
}
41+
42+
.wpgraphql-logging-filters .clear-all-button {
43+
margin: 0;
44+
margin-left: 5px;
45+
text-decoration: none;
46+
}

plugins/wpgraphql-logging/src/Admin/View/Templates/WPGraphQLLoggerFilters.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,22 @@
2222
$wpgraphql_logging_log_levels = apply_filters( 'wpgraphql_logging_log_levels', $wpgraphql_logging_log_levels );
2323
?>
2424

25-
<div class="alignleft actions" style="display: inline-flex; align-items: center; gap: 8px; margin-right: 10px;">
25+
<div class="alignleft actions wpgraphql-logging-filters">
2626
<input type="text"
2727
name="start_date"
2828
class="wpgraphql-logging-datepicker"
2929
placeholder="Start Date"
3030
value="<?php echo esc_attr( $wpgraphql_logging_current_start_date ); ?>"
31-
autocomplete="off"
32-
style="width: 120px;" />
31+
autocomplete="off" />
3332

3433
<input type="text"
3534
name="end_date"
3635
class="wpgraphql-logging-datepicker"
3736
placeholder="End Date"
3837
value="<?php echo esc_attr( $wpgraphql_logging_current_end_date ); ?>"
39-
autocomplete="off"
40-
style="width: 120px;" />
38+
autocomplete="off" />
4139

42-
<select name="level_filter" style="width: 120px;">
40+
<select name="level_filter">
4341
<option value="">All Levels</option>
4442
<?php foreach ( $wpgraphql_logging_log_levels as $wpgraphql_logging_level ) : ?>
4543
<option value="<?php echo esc_attr( $wpgraphql_logging_level ); ?>" <?php selected( $wpgraphql_logging_current_level, $wpgraphql_logging_level ); ?>>
@@ -51,8 +49,7 @@ class="wpgraphql-logging-datepicker"
5149
<?php submit_button( __( 'Filter', 'wpgraphql-logging' ), 'secondary', '', false, [ 'style' => 'margin: 0;' ] ); ?>
5250

5351
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpgraphql-logging-view' ) ); ?>"
54-
class="clear-all-button"
55-
style="margin: 0; margin-left: 5px; text-decoration: none;">
52+
class="clear-all-button">
5653
<?php esc_html_e( 'Clear All', 'wpgraphql-logging' ); ?>
5754
</a>
5855
</div>

0 commit comments

Comments
 (0)