[Common] changed layout for the huge buttons

This commit is contained in:
Maxim Kadushkin 2017-03-29 11:49:42 +03:00
parent 71595d781c
commit f751aac0ab
2 changed files with 9 additions and 5 deletions

View file

@ -120,7 +120,6 @@ define([
'use strict'; 'use strict';
var templateHugeCaption = var templateHugeCaption =
'<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' +
'<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' + '<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' +
'<div class="inner-box-icon">' + '<div class="inner-box-icon">' +
'<% if ( iconImg ) { %>' + '<% if ( iconImg ) { %>' +
@ -130,17 +129,18 @@ define([
'<% } %>' + '<% } %>' +
'</div>' + '</div>' +
'<span class="caption"><%= caption %></span>' + '<span class="caption"><%= caption %></span>' +
'</button>' + '</button>';
'</div>';
var templateHugeMenuCaption = var templateHugeMenuCaption =
'<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' + '<div class="btn-group icon-top" id="<%= id %>" style="<%= style %>">' +
'<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' + '<button type="button" class="btn dropdown-toggle <%= cls %>" data-toggle="dropdown">' +
'<div class="inner-box-icon">' +
'<% if ( iconImg ) { %>' + '<% if ( iconImg ) { %>' +
'<img src="<%= iconImg %>">' + '<img src="<%= iconImg %>">' +
'<% } else { %>' + '<% } else { %>' +
'<i class="icon <%= iconCls %>">&nbsp;</i>' + '<i class="icon <%= iconCls %>">&nbsp;</i>' +
'<% } %>' + '<% } %>' +
'</div>' +
'<div class="inner-box-caption">' + '<div class="inner-box-caption">' +
'<span class="caption"><%= caption %></span>' + '<span class="caption"><%= caption %></span>' +
'<span class="caret img-commonctrl"></span>' + '<span class="caret img-commonctrl"></span>' +
@ -151,7 +151,11 @@ define([
var templateHugeSplitCaption = var templateHugeSplitCaption =
'<div class="btn-group x-huge split icon-top" id="<%= id %>" style="<%= style %>">' + '<div class="btn-group x-huge split icon-top" id="<%= id %>" style="<%= style %>">' +
'<button type="button" class="btn <%= cls %> inner-box-icon">' + '<button type="button" class="btn <%= cls %> inner-box-icon">' +
'<i class="icon <%= iconCls %>">&nbsp;</i>' + '<% if ( iconImg ) { %>' +
'<img src="<%= iconImg %>">' +
'<% } else { %>' +
'<i class="icon <%= iconCls %>">&nbsp;</i>' +
'<% } %>' +
'</button>' + '</button>' +
'<button type="button" class="btn <%= cls %> inner-box-caption dropdown-toggle" data-toggle="dropdown">' + '<button type="button" class="btn <%= cls %> inner-box-caption dropdown-toggle" data-toggle="dropdown">' +
'<span class="caption"><%= caption %></span>' + '<span class="caption"><%= caption %></span>' +

View file

@ -85,7 +85,7 @@
} }
} }
.btn-group.icon-top { .icon-top {
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;