Fix layout issues for "object-helper" element

thanks flexbox!
This commit is contained in:
Lance Edgar 2018-11-30 17:53:00 -06:00
parent e100e0ea72
commit 358ac1592b
4 changed files with 63 additions and 44 deletions

View file

@ -8,23 +8,6 @@ div.form-wrapper {
}
/******************************
* "object helper" panel
******************************/
.object-helper {
border: 1px solid black;
float: right;
margin-top: 1em;
padding: 1em;
width: 20em;
}
.object-helper-content {
margin-top: 1em;
}
/******************************
* Forms
******************************/

View file

@ -151,6 +151,20 @@ body > #body-wrapper {
white-space: nowrap;
}
/******************************
* "object helper" panel
******************************/
.object-helper {
border: 1px solid black;
margin: 1em;
padding: 1em;
width: 20em;
}
.object-helper-content {
margin-top: 1em;
}
/******************************
* Panels

View file

@ -124,6 +124,20 @@ header .level .theme-picker {
white-space: nowrap;
}
/******************************
* "object helper" panel
******************************/
.object-helper {
border: 1px solid black;
margin: 1em;
padding: 1em;
width: 20em;
}
.object-helper-content {
margin-top: 1em;
}
/* /\****************************** */
/* * Panels */

View file

@ -75,9 +75,13 @@
% endif
</%def>
<ul id="context-menu">
${self.context_menu_items()}
</ul>
<div style="display: flex; justify-content: space-between;">
<div class="form-wrapper">
${form.render(form_id='batch-form', buttons=capture(buttons))|n}
</div><!-- form-wrapper -->
<div style="display: flex; align-items: flex-start;">
% if status_breakdown is not Undefined and status_breakdown is not None:
<div class="object-helper">
@ -101,9 +105,13 @@
</div>
% endif
<div class="form-wrapper">
${form.render(form_id='batch-form', buttons=capture(buttons))|n}
</div><!-- form-wrapper -->
<ul id="context-menu">
${self.context_menu_items()}
</ul>
</div>
</div>
${rows_grid|n}