Skip to content

Commit

Permalink
[ui:toolbar] fix #2751 correction rtl-toolbar (float icons in group)
Browse files Browse the repository at this point in the history
And remove CSS class "ui-corner-*" rel #2739 .
  • Loading branch information
nao-pon committed Oct 28, 2018
1 parent f471d8c commit 295db8f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
32 changes: 13 additions & 19 deletions css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
overflow: hidden;
}

/*.elfinder-buttonset:first-child { margin:0; }*/
Expand All @@ -41,6 +42,10 @@
cursor: default;
}

.elfinder-rtl .elfinder-button {
float: right;
}

.elfinder-touch .elfinder-button {
min-width: 20px;
height: 20px;
Expand All @@ -50,24 +55,6 @@
cursor: pointer;
}

.elfinder-button:first-child {
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
}

.elfinder-button:last-child {
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
border-top-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
}

/* separator between buttons, required for berder between button with ui color */
.elfinder-toolbar-button-separator {
float: left;
Expand All @@ -79,6 +66,10 @@
width: 0;
}

.elfinder-rtl .elfinder-toolbar-button-separator {
float: right;
}

.elfinder-touch .elfinder-toolbar-button-separator {
height: 28px;
}
Expand Down Expand Up @@ -437,7 +428,6 @@
margin: 1px 4px;
height: auto;
min-height: 26px;
float: right;
width: 70px;
overflow: visible;
}
Expand Down Expand Up @@ -495,6 +485,10 @@
margin-left: 10px;
}

.elfinder-rtl .ui-controlgroup > .ui-controlgroup-item {
float: right;
}

/* search text field */
.elfinder-button-search input[type=text] {
box-sizing: border-box;
Expand Down
6 changes: 3 additions & 3 deletions js/ui/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $.fn.elfindertoolbar = function(fm, opts) {
"use strict";
this.not('.elfinder-toolbar').each(function() {
var commands = fm._commands,
self = $(this).addClass('ui-helper-clearfix ui-widget-header ui-corner-top elfinder-toolbar'),
self = $(this).addClass('ui-helper-clearfix ui-widget-header elfinder-toolbar'),
options = {
// default options
displayTextLabel: false,
Expand All @@ -32,7 +32,7 @@ $.fn.elfindertoolbar = function(fm, opts) {
l = panels.length;
while (l--) {
if (panels[l]) {
panel = $('<div class="ui-widget-content ui-corner-all elfinder-buttonset"/>');
panel = $('<div class="ui-widget-content elfinder-buttonset"/>');
i = panels[l].length;
while (i--) {
name = panels[l][i];
Expand All @@ -58,7 +58,7 @@ $.fn.elfindertoolbar = function(fm, opts) {
//cmdPref.state = !self.children().length? 0 : -1;
if (options.showPreferenceButton === 'always' || (!self.children().length && options.showPreferenceButton === 'auto')) {
//cmdPref.state = 0;
panel = $('<div class="ui-widget-content ui-corner-all elfinder-buttonset"/>');
panel = $('<div class="ui-widget-content elfinder-buttonset"/>');
name = 'preference';
button = 'elfinder'+cmd.options.ui;
buttons[name] = $('<div/>')[button](cmdPref);
Expand Down

0 comments on commit 295db8f

Please sign in to comment.