Skip to content

Commit

Permalink
shopfloor_mobile: split picking note correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JuMiSanAr committed Apr 10, 2024
1 parent e18e5d8 commit 4348eef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions shopfloor_mobile/static/wms/src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ I tested only w/ checkout/select_package for now
top: 5px;
right: 5px;
}

/*
Split the lines correctly in the picking note if there are multiple lines
*/
.picking-note {
white-space: pre-line;
}
2 changes: 1 addition & 1 deletion shopfloor_mobile/static/wms/src/scenario/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Checkout = {
<div v-if="state_is('select_package')">
<v-alert type="info" tile v-if="state.data.picking.note" class="packing-info">
<p v-text="state.data.picking.note" />
<p class="picking-note" v-text="state.data.picking.note" />
</v-alert>
<item-detail-card
v-if="state.data.picking.carrier"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ClusterPicking = {
v-on:cancel="state.on_cancel"
/>
<v-alert type="info" tile v-if="state_is('start_line') && state.data.picking.note" class="packing-info">
<p v-text="state.data.picking.note" />
<p class="picking-note" v-text="state.data.picking.note" />
</v-alert>
<batch-picking-line-detail
v-if="state_in(['start_line', 'scan_destination', 'change_pack_lot', 'stock_issue'])"
Expand Down

0 comments on commit 4348eef

Please sign in to comment.