Plugin Directory

Changeset 2148631


Ignore:
Timestamp:
08/30/2019 06:04:12 PM (6 years ago)
Author:
Will Brownsberger
Message:

dashboard appearance tweaks

Location:
wp-issues-crm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-issues-crm/trunk/css/dashboard.css

    r2145245 r2148631  
    153153}
    154154.wic-dashboard-tall .wic-inner-dashboard {
    155     height: calc( 100vh - 540px) ;
     155    height: auto;
     156    max-height: calc( 100vh - 540px) ;
     157    margin-bottom: 30px;
    156158}
    157159.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) ;
    159175}
    160176
  • wp-issues-crm/trunk/php/entity/class-wic-entity-dashboard.php

    r2148613 r2148631  
    2323        if ( $config ) {
    2424            $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();
    2725        } else {
    2826            $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();
    3127        }   
    3228        if ( current_user_can (WIC_Admin_Access::check_required_capability ('view_edit_unassigned') ) ) {
     
    6662        echo '<ul id="dashboard-sortables" >';
    6763        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
    7066            echo
    7167                '<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.