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