[FIX] pos_restaurant: show occupation on round tables
On square tables we graphically display how many people are currently on the table by making part of the table on the floor screen darker. On round tables we didn't do this.
This commit is contained in:
committed by
Joren Van Onder
parent
8d305ba9cd
commit
bb1958b5ff
@@ -76,6 +76,7 @@
|
||||
cursor: pointer;
|
||||
box-shadow: 0px 3px rgba(0,0,0,0.07);
|
||||
transition: background, background-color 300ms ease-in-out;
|
||||
overflow: hidden;
|
||||
}
|
||||
.floor-map .table .table-cover {
|
||||
display: block;
|
||||
@@ -240,7 +241,7 @@
|
||||
left: 50%;
|
||||
background: black;
|
||||
width: 20px;
|
||||
margin-top: -10px;
|
||||
margin-top: 1px;
|
||||
margin-left: -10px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<t t-if='!widget.selected'>
|
||||
<div class='table' t-att-style='widget.table_style_str()'>
|
||||
<span
|
||||
t-if="widget.table.shape !== 'round'"
|
||||
t-if="widget.table.shape"
|
||||
t-att-class='"table-cover " + (widget.fill >= 1 ? "full" : "")'
|
||||
t-att-style='"height: " + Math.ceil(widget.fill * 100) + "%;"'
|
||||
></span>
|
||||
|
||||
Reference in New Issue
Block a user