mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
Cut text off before the buttons in the dashboard edit list instead of having it fall on the next line
This commit is contained in:
parent
315a4893ec
commit
45e84497f1
2 changed files with 44 additions and 36 deletions
20
resources/assets/sass/dashboard.scss
vendored
20
resources/assets/sass/dashboard.scss
vendored
|
@ -265,7 +265,16 @@ body {
|
||||||
|
|
||||||
@media (max-width: $screen-xs-max) {
|
@media (max-width: $screen-xs-max) {
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
padding-left: 60px;
|
}
|
||||||
|
|
||||||
|
@media (min-width: $screen-sm-min) {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.sortable {
|
||||||
|
@media (max-width: $screen-xs-max) {
|
||||||
|
padding-left: 50px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-column {
|
.title-column {
|
||||||
|
@ -279,7 +288,9 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: $screen-sm-min) {
|
@media (min-width: $screen-sm-min) {
|
||||||
float: left;
|
overflow: hidden;
|
||||||
|
flex-grow: 1;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-icon {
|
.sort-icon {
|
||||||
|
@ -316,15 +327,16 @@ body {
|
||||||
|
|
||||||
.button-column {
|
.button-column {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
padding-left: 0px;
|
|
||||||
|
|
||||||
@media (max-width: $screen-xs-max) {
|
@media (max-width: $screen-xs-max) {
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
|
padding-left: 0px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: $screen-sm-min) {
|
@media (min-width: $screen-sm-min) {
|
||||||
float: right;
|
padding-left: 5px;
|
||||||
|
flex-shrink: 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,7 @@
|
||||||
|
|
||||||
<ul id="edit-list" class="list-group edit-list list" data-model="{{ $model }}" data-path="{{ isset($path) ? $path : $model }}" {{ $sortcol != false ? "data-sort=$sortcol" : '' }}>
|
<ul id="edit-list" class="list-group edit-list list" data-model="{{ $model }}" data-path="{{ isset($path) ? $path : $model }}" {{ $sortcol != false ? "data-sort=$sortcol" : '' }}>
|
||||||
@foreach($rows as $row)
|
@foreach($rows as $row)
|
||||||
<li class="list-group-item" data-id="{{ $row['id'] }}">
|
<li class="list-group-item {{ $sortcol != false ? 'sortable' : '' }}" data-id="{{ $row['id'] }}">
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
<div class="title-column">
|
<div class="title-column">
|
||||||
@if($sortcol != false)
|
@if($sortcol != false)
|
||||||
<div class="sort-icon">
|
<div class="sort-icon">
|
||||||
|
@ -56,8 +54,6 @@
|
||||||
<button type="button" class="delete-button btn btn-danger">Delete</button>
|
<button type="button" class="delete-button btn btn-danger">Delete</button>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue