Merge pull request '2938-entry_buy_style' (#651) from 2938-entry_buy_style into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #651
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2021-06-15 12:46:50 +00:00
commit 2262f3e542
5 changed files with 400 additions and 376 deletions

View File

@ -230,3 +230,7 @@ vn-table.scrollable.lg,
.vn-table.scrollable.lg { .vn-table.scrollable.lg {
max-height: 700px max-height: 700px
} }
.tableWrapper {
overflow-x: auto;
}

View File

@ -10,6 +10,7 @@
</vn-watcher> </vn-watcher>
<div class="vn-w-xl"> <div class="vn-w-xl">
<vn-card class="vn-pa-lg"> <vn-card class="vn-pa-lg">
<div class="tableWrapper">
<vn-horizontal class="header"> <vn-horizontal class="header">
<vn-tool-bar class="vn-mb-md"> <vn-tool-bar class="vn-mb-md">
<vn-button <vn-button
@ -167,7 +168,7 @@
{{::buy.item.minPrice | currency: 'EUR':2}} {{::buy.item.minPrice | currency: 'EUR':2}}
</span> </span>
</td> </td>
<td vn-fetched-tags colspan="9"> <td vn-fetched-tags colspan="8">
<vn-one title="{{::buy.item.name}}">{{::buy.item.name}}</vn-one> <vn-one title="{{::buy.item.name}}">{{::buy.item.name}}</vn-one>
<vn-fetched-tags <vn-fetched-tags
max-length="6" max-length="6"
@ -176,6 +177,7 @@
</vn-fetched-tags> </vn-fetched-tags>
</td> </td>
</tr> </tr>
<tr><td></td></tr>
</tbody> </tbody>
</table> </table>
<div> <div>
@ -187,6 +189,7 @@
ng-click="model.insert({})"> ng-click="model.insert({})">
</vn-icon-button> </vn-icon-button>
</div> </div>
</div>
</vn-card> </vn-card>
</div> </div>
<div fixed-bottom-right> <div fixed-bottom-right>

View File

@ -8,14 +8,29 @@ vn-entry-buy-index vn-card {
background-color: lighten($color-marginal, 10%); background-color: lighten($color-marginal, 10%);
} }
tbody tr:nth-child(1) { thead tr {
border-top: 1px solid $color-marginal; border-left: 1px solid white;
border-right: 1px solid white;
}
tbody tr:nth-child(1),
tbody tr:nth-child(2) {
border-left: 1px solid $color-marginal;
border-right: 1px solid $color-marginal;
}
tbody tr:nth-child(2) {
border-bottom: 1px solid $color-marginal;
} }
tbody{ tbody{
border-bottom: 1px solid $color-marginal; border-bottom: 1px solid $color-marginal;
} }
tbody:last-child {
border-bottom: 0;
}
tbody tr:nth-child(3) { tbody tr:nth-child(3) {
height: inherit height: inherit
} }

View File

@ -8,6 +8,7 @@
</vn-crud-model> </vn-crud-model>
<vn-data-viewer model="model" class="vn-w-xl"> <vn-data-viewer model="model" class="vn-w-xl">
<vn-card class="vn-mt-md"> <vn-card class="vn-mt-md">
<div class="tableWrapper">
<table class="vn-table"> <table class="vn-table">
<thead> <thead>
<tr> <tr>
@ -62,6 +63,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
</vn-card> </vn-card>
</vn-data-viewer> </vn-data-viewer>
<vn-side-menu side="right"> <vn-side-menu side="right">