Skip to content

Commit 8266ec9

Browse files
committed
fix styles
1 parent 40ea262 commit 8266ec9

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@
55
margin-bottom: 20px;
66
}
77

8-
.wpgraphql-logging-view-table pre.wpgraphql-logging-query,
9-
.wpgraphql-logging-view-table pre.wpgraphql-logging-context,
10-
.wpgraphql-logging-view-table pre.wpgraphql-logging-extra {
8+
.wpgraphql-logging-details pre.wpgraphql-logging-query,
9+
.wpgraphql-logging-details pre.wpgraphql-logging-context,
10+
.wpgraphql-logging-details pre.wpgraphql-logging-extra {
1111
white-space: pre-wrap;
1212
max-height: 540px;
1313
overflow-y: scroll;
1414
padding: 15px;
1515
border: 1px solid #ddd;
1616
border-radius: 4px;
1717
}
18+
19+
pre.wpgraphql-logging-list-table-query {
20+
overflow-x: auto;
21+
background: #f4f4f4;
22+
margin-top: 0;
23+
margin-bottom: 0;
24+
padding: 15px;
25+
border: 1px solid #ddd;
26+
border-radius: 4px;
27+
max-height: 20px;
28+
}

plugins/wpgraphql-logging/src/Admin/View/List/ListTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ protected function format_code(string $code): string {
413413
if ( empty( $code ) ) {
414414
return '';
415415
}
416-
return '<pre style="overflow-x: auto; background: #f4f4f4; padding: 15px; border: 1px solid #ddd; border-radius: 4px; max-height: 300px;">' . esc_html( $code ) . '</pre>';
416+
return '<pre class="wpgraphql-logging-list-table-query">' . esc_html( $code ) . '</pre>';
417417
}
418418

419419
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</a>
3434
</div>
3535

36-
<table class="widefat striped wpgraphql-logging-view-table">
36+
<table class="widefat striped wpgraphql-logging-details">
3737
<tbody>
3838
<tr>
3939
<th><?php esc_html_e( 'ID', 'wpgraphql-logging' ); ?></th>

0 commit comments

Comments
 (0)