Make WordPress Core

Changeset 34094 for trunk


Ignore:
Timestamp:
09/13/2015 12:46:03 PM (9 years ago)
Author:
helen
Message:

Comments: Fix inline edit/reply on small screens.

props ocean90, SergeyBiryukov.
fixes #33596.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r34083 r34094  
    18261826    }
    18271827
    1828     #comments-form .fixed .column-author {
     1828    #comments-form .fixed .column-author,
     1829    #commentsdiv .fixed .column-author {
    18291830        display: none !important;
    18301831    }
     
    19811982    }
    19821983
     1984    #edithead .inside,
     1985    #commentsdiv #edithead .inside {
     1986        float: none;
     1987        text-align: left;
     1988        padding: 3px 5px;
     1989    }
     1990
     1991    #commentsdiv #edithead .inside input,
     1992    #edithead .inside input {
     1993        width: 100%;
     1994    }
     1995
     1996    #edithead label {
     1997        display: block;
     1998    }
     1999
    19832000    #bulk-titles div {
    19842001        margin: 0.8em 0.3em;
  • trunk/src/wp-admin/includes/template.php

    r34070 r34094  
    491491<form method="get">
    492492<?php if ( $table_row ) : ?>
    493 <table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
     493<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" class="inline-edit-row" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
    494494<?php else : ?>
    495495<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
  • trunk/src/wp-admin/js/edit-comments.js

    r33982 r34094  
    634634        act = 'edit' == action ? 'edit' : 'replyto';
    635635        act = t.act = act + '-comment';
     636
     637        $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', c ).length );
    636638
    637639        $('#action', editRow).val(act);
Note: See TracChangeset for help on using the changeset viewer.