Commit 1baa6cac authored by Romain Courteaud's avatar Romain Courteaud

erp5_document_scanner: improve image review

parent 3961e778
...@@ -94,6 +94,9 @@ div[data-gadget-url$="gadget_document_scanner.html"] .new-btn { ...@@ -94,6 +94,9 @@ div[data-gadget-url$="gadget_document_scanner.html"] .new-btn {
width: calc(6em + 1px); width: calc(6em + 1px);
height: calc(6em + 1px); height: calc(6em + 1px);
} }
div[data-gadget-url$="gadget_document_scanner.html"] .review-img-container {
height: 70vh;
}
div[data-gadget-url$="gadget_document_scanner.html"] .img-container, div[data-gadget-url$="gadget_document_scanner.html"] .img-container,
div[data-gadget-url$="gadget_document_scanner.html"] .camera-input { div[data-gadget-url$="gadget_document_scanner.html"] .camera-input {
/* Never limit the container height here */ /* Never limit the container height here */
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>982.62805.13685.6178</string> </value> <value> <string>982.62807.48775.28757</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1585917584.58</float> <float>1585922346.12</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -731,7 +731,7 @@ ...@@ -731,7 +731,7 @@
div = domsugar('div', {'class': 'camera'}, [ div = domsugar('div', {'class': 'camera'}, [
buildPageTitle(gadget, result_list[0][2]), buildPageTitle(gadget, result_list[0][2]),
domsugar('div', {'class': 'img-container'}, [ domsugar('div', {'class': 'review-img-container'}, [
domsugar('img', {src: gadget.state['blob_url_' + gadget.state.display_index]}) domsugar('img', {src: gadget.state['blob_url_' + gadget.state.display_index]})
]), ]),
// XXX TODO: why is the button rendering different from the other pages? // XXX TODO: why is the button rendering different from the other pages?
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>982.62865.31516.35805</string> </value> <value> <string>982.62866.16795.56132</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1585921095.31</float> <float>1585922429.02</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -94,6 +94,10 @@ div[data-gadget-url$="gadget_document_scanner.html"] { ...@@ -94,6 +94,10 @@ div[data-gadget-url$="gadget_document_scanner.html"] {
height: calc(6em + 1px); height: calc(6em + 1px);
} }
.review-img-container {
height: 70vh;
}
.img-container, .camera-input { .img-container, .camera-input {
/* Never limit the container height here */ /* Never limit the container height here */
position: relative; position: relative;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment