优化默认生成的CRUD列表中TD不换行

优化通用搜索显示
pull/765110/MERGE
Karson 2018-05-31 21:07:53 +08:00
parent 045647c407
commit 4bb1cbd2dd
4 changed files with 14 additions and 10 deletions

View File

@ -20,7 +20,7 @@
</ul> </ul>
</div> </div>
</div> </div>
<table id="table" class="table table-striped table-bordered table-hover" <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('{%controllerUrl%}/edit')}" data-operate-edit="{:$auth->check('{%controllerUrl%}/edit')}"
data-operate-del="{:$auth->check('{%controllerUrl%}/del')}" data-operate-del="{:$auth->check('{%controllerUrl%}/del')}"
width="100%"> width="100%">

View File

@ -652,10 +652,7 @@ form.form-horizontal .control-label {
.bootstrap-table .form-commonsearch .form-group { .bootstrap-table .form-commonsearch .form-group {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} white-space: nowrap;
.bootstrap-table .form-commonsearch .form-group > .control-label {
padding-left: 0;
padding-right: 0;
} }
.toolbar { .toolbar {
margin-top: 10px; margin-top: 10px;
@ -676,6 +673,10 @@ form.form-horizontal .control-label {
.bootstrap-table td.bs-checkbox { .bootstrap-table td.bs-checkbox {
vertical-align: middle; vertical-align: middle;
} }
table.table-nowrap tbody > tr > td,
table.table-nowrap thead > tr > th {
white-space: nowrap;
}
.fixed-table-container thead th .sortable { .fixed-table-container thead th .sortable {
padding-right: 0; padding-right: 0;
} }

File diff suppressed because one or more lines are too long

View File

@ -738,10 +738,7 @@ form.form-horizontal .control-label {
.bootstrap-table .form-commonsearch .form-group { .bootstrap-table .form-commonsearch .form-group {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
> .control-label { white-space: nowrap;
padding-left:0;
padding-right:0;
}
} }
.toolbar { .toolbar {
@ -766,6 +763,12 @@ form.form-horizontal .control-label {
vertical-align: middle; vertical-align: middle;
} }
table.table-nowrap {
tbody > tr > td, thead > tr > th {
white-space: nowrap;
}
}
.fixed-table-container thead th .sortable { .fixed-table-container thead th .sortable {
padding-right: 0; padding-right: 0;
} }