Make WordPress Core

Ticket #27755: 27755-wrap-buttons.diff

File 27755-wrap-buttons.diff, 1.4 KB (added by ehg, 11 years ago)
  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index 1fd2006..f966114 100644
    body { 
    484484        display: block;
    485485}
    486486
     487#customize-control-header_image button.new,
     488#customize-control-header_image button.remove {
     489        white-space: normal;
     490        width: 48%;
     491        height: auto;
     492}
     493
     494
    487495/* Header control: current image container */
    488496
    489497#customize-control-header_image .current .container {
    body { 
    538546#customize-control-header_image .header-view.selected:after {
    539547        content: '';
    540548        position: absolute;
     549        height: auto;
    541550        top: 0; left: 0; bottom: 0; right: 0;
    542551        border: 4px solid #2ea2cc;
    543552        -webkit-border-radius: 2px;
    body { 
    586595
    587596#customize-control-header_image button.random {
    588597        width: 100%;
    589         height: 40px;
     598        height: auto;
     599        min-height: 40px;
     600        white-space: normal;
    590601}
    591602
    592603#customize-control-header_image button.random .dice {
  • src/wp-includes/js/customize-views.js

    diff --git src/wp-includes/js/customize-views.js src/wp-includes/js/customize-views.js
    index 8dbc0c1..9c1669f 100644
     
    120120                render: function() {
    121121                        this.$el.html(this.template(this.extendedModel()));
    122122
    123                         if (this.model.get('random')) {
    124                                 this.setPlaceholder(40);
    125                         }
    126 
    127123                        this.toggleSelected();
    128124                        return this;
    129125                },