Changeset 2148631
- Timestamp:
- 08/30/2019 06:04:12 PM (6 years ago)
- Location:
- wp-issues-crm/trunk
- Files:
-
- 2 edited
-
css/dashboard.css (modified) (1 diff)
-
php/entity/class-wic-entity-dashboard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-issues-crm/trunk/css/dashboard.css
r2145245 r2148631 153 153 } 154 154 .wic-dashboard-tall .wic-inner-dashboard { 155 height: calc( 100vh - 540px) ; 155 height: auto; 156 max-height: calc( 100vh - 540px) ; 157 margin-bottom: 30px; 156 158 } 157 159 .wic-dashboard-tall .wic-inner-dashboard ul.wic-post-list { 158 height: calc( 100vh - 540px) ; 160 height: auto; 161 max-height: calc( 100vh - 540px) ; 162 } 163 164 /* maintain always open flexible height for dashboard summary */ 165 .wic-dashboard-flex .wic-inner-dashboard, 166 .wic-dashboard-flex.wic-dashboard-tall .wic-inner-dashboard { 167 height: auto; 168 margin-bottom: 30px; 169 max-height: calc( 100vh - 540px) ; 170 } 171 .wic-dashboard-flex .wic-inner-dashboard ul.wic-post-list, 172 .wic-dashboard-flex.wic-dashboard-tall .wic-inner-dashboard ul.wic-post-list { 173 height: auto ; 174 max-height: calc( 100vh - 540px) ; 159 175 } 160 176 -
wp-issues-crm/trunk/php/entity/class-wic-entity-dashboard.php
r2148613 r2148631 23 23 if ( $config ) { 24 24 $sort_list = array_flip ( $config->sort ); // e.g., $sort_list['dashboard_activity'] = 0 . . . 25 $wide_list = isset ( $config->wide ) ? $config->wide : array();26 $tall_list = isset ( $config->tall ) ? $config->tall : array();27 25 } else { 28 26 $sort_list = array(); 29 $wide_list = array( 'dashboard_mycases', 'dashboard_myissues', 'dashboard_issues','dashboard_cases','dashboard_activity', 'dashboard_activity_type', 'dashboard_recent', 'dashboard_searches', 'dashboard_uploads' );30 $tall_list = array();31 27 } 32 28 if ( current_user_can (WIC_Admin_Access::check_required_capability ('view_edit_unassigned') ) ) { … … 66 62 echo '<ul id="dashboard-sortables" >'; 67 63 foreach ( $sorted_dashboard_divs as $key => $dashboard_div ) { 68 $wide_class = !in_array( $dashboard_div[0], $wide_list ) ? ' wic-dashboard-quarter ' : ' wic-dashboard-full ';69 $tall_class = in_array( $dashboard_div[0], $tall_list ) ? ' wic-dashboard-tall ' : '' ;64 $wide_class = ' wic-dashboard-full '; 65 $tall_class = in_array( $dashboard_div[0], array ( 'dashboard_overview' ) ) ? ' wic-dashboard-flex ' : ''; // no longer controlled by user 70 66 echo 71 67 '<li id = "' . $dashboard_div[0] . '" class = "ui-state-default wic-dashboard ' . $wide_class . $tall_class . '">' .
Note: See TracChangeset
for help on using the changeset viewer.