Skip to content

Commit

Permalink
[FIX] point_of_sale: alignment note textarea
Browse files Browse the repository at this point in the history
before fix:
in firefox the textarea of note modal has a overflow
textarea can be expanded outside borders modal in all browsers

closes odoo#25199
closes odoo#25215

issue 1895298
  • Loading branch information
Gert Pellin authored and switch87 committed Oct 25, 2018
1 parent bfbaa09 commit 299c6dd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions addons/point_of_sale/static/src/css/pos.css
Original file line number Diff line number Diff line change
Expand Up @@ -2140,6 +2140,19 @@ td {
font-family: 'Lato';
font-family: Lato;
}
.pos .modal-dialog .popup-textinput{
display: flex;
flex-direction: column;
}
.pos .modal-dialog .popup-textinput .title,
.pos .modal-dialog .popup-textinput .footer{
flex: none;
}
.pos .modal-dialog .popup-textinput textarea{
resize: none;
flex: auto;
margin: 0 20px 80px;
}
.pos .popup .title {
background: rgba(255,255,255,0.5);
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion addons/point_of_sale/static/src/xml/pos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@
<div class="modal-dialog">
<div class="popup popup-textinput">
<p class="title"><t t-esc=" widget.options.title || '' " /></p>
<textarea rows="10" cols="40"><t t-esc="widget.options.value" /></textarea>
<textarea><t t-esc="widget.options.value" /></textarea>
<div class="footer">
<div class="button confirm">
Ok
Expand Down

0 comments on commit 299c6dd

Please sign in to comment.