Enable horizontal scrolling in admin data tables on mobile
This commit is contained in:
@@ -91,8 +91,10 @@
|
||||
#sp_profilediv .wp-editor-container {
|
||||
background-color:#fff;
|
||||
}
|
||||
.sp-data-table-container {
|
||||
overflow: auto;
|
||||
}
|
||||
.sp-data-table td {
|
||||
padding: 4px 7px;
|
||||
line-height: 2;
|
||||
}
|
||||
.sp-data-table td:first-child {
|
||||
|
||||
@@ -496,6 +496,7 @@ if ( !function_exists( 'sp_get_var_equations' ) ) {
|
||||
if ( !function_exists( 'sp_league_table' ) ) {
|
||||
function sp_league_table( $columns = array(), $data = array(), $placeholders = array() ) {
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -529,6 +530,7 @@ if ( !function_exists( 'sp_league_table' ) ) {
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -536,6 +538,7 @@ if ( !function_exists( 'sp_league_table' ) ) {
|
||||
if ( !function_exists( 'sp_player_table' ) ) {
|
||||
function sp_player_table( $columns = array(), $data = array(), $placeholders = array() ) {
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -569,6 +572,7 @@ if ( !function_exists( 'sp_player_table' ) ) {
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -576,6 +580,7 @@ if ( !function_exists( 'sp_player_table' ) ) {
|
||||
if ( !function_exists( 'sp_team_columns_table' ) ) {
|
||||
function sp_team_columns_table( $columns = array(), $data = array(), $placeholders = array() ) {
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -617,6 +622,7 @@ if ( !function_exists( 'sp_team_columns_table' ) ) {
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -624,6 +630,7 @@ if ( !function_exists( 'sp_team_columns_table' ) ) {
|
||||
if ( !function_exists( 'sp_player_statistics_table' ) ) {
|
||||
function sp_player_statistics_table( $columns = array(), $data = array(), $placeholders = array() ) {
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -665,6 +672,7 @@ if ( !function_exists( 'sp_player_statistics_table' ) ) {
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -672,6 +680,7 @@ if ( !function_exists( 'sp_player_statistics_table' ) ) {
|
||||
if ( !function_exists( 'sp_event_results_table' ) ) {
|
||||
function sp_event_results_table( $columns = array(), $data = array() ) {
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -719,6 +728,7 @@ if ( !function_exists( 'sp_event_results_table' ) ) {
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -773,6 +783,7 @@ if ( !function_exists( 'sp_event_player_sub_selector' ) ) {
|
||||
if ( !function_exists( 'sp_event_players_table' ) ) {
|
||||
function sp_event_players_table( $columns = array(), $data = array(), $team_id ) {
|
||||
?>
|
||||
<div class="sp-data-table-container">
|
||||
<table class="widefat sp-data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -822,6 +833,7 @@ if ( !function_exists( 'sp_event_players_table' ) ) {
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user