Removed internal scroll from log viewer, closes #11729
This commit is contained in:
parent
21ad196297
commit
47177667aa
File diff suppressed because one or more lines are too long
|
@ -307,9 +307,15 @@ table.wc_status_table {
|
|||
}
|
||||
|
||||
#log-viewer {
|
||||
textarea {
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
background: #fff;
|
||||
border: 1px solid #e5e5e5;
|
||||
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
||||
padding: 5px 20px;
|
||||
|
||||
pre {
|
||||
font-family: monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="log-viewer">
|
||||
<textarea cols="70" rows="40"><?php echo esc_textarea( file_get_contents( WC_LOG_DIR . $viewed_log ) ); ?></textarea>
|
||||
<pre><?php echo esc_html( file_get_contents( WC_LOG_DIR . $viewed_log ) ); ?></pre>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="updated woocommerce-message inline"><p><?php _e( 'There are currently no logs to view.', 'woocommerce' ); ?></p></div>
|
||||
|
|
Loading…
Reference in New Issue