Fix some layout issues on infolog ProjectManager tab

- Relative dates number was detached from unit selectbox
- Price input was squished
This commit is contained in:
nathan 2024-11-29 10:07:04 -07:00
parent ac1e1beb09
commit 7abb9c938c
4 changed files with 10 additions and 6 deletions

View File

@ -157,6 +157,8 @@ export class Et2DateDuration extends Et2InputWidget(LitElement)
flex: 1 1 auto; flex: 1 1 auto;
width: min-content; width: min-content;
min-width: 5em; min-width: 5em;
/* This is the same as max-width of the number field */
max-width: 7em;
margin-right: -2px; margin-right: -2px;
} }

View File

@ -60,7 +60,7 @@ export class Et2Number extends Et2Textbox
} }
.form-control-input { .form-control-input {
min-width: min-content; min-width: 4em;
max-width: 7em; max-width: 7em;
} }

View File

@ -91,6 +91,10 @@ div#infolog-edit_infolog-edit-description iframe {
display: inline-block; display: inline-block;
} }
#infolog-edit_infolog-edit-project > table {
table-layout: fixed;
}
#infolog-index #infolog-index_nm .filtersContainer { #infolog-index #infolog-index_nm .filtersContainer {
width: 60%; width: 60%;
} }

View File

@ -27,10 +27,9 @@
<template id="infolog.edit.project" template="" lang="" group="0" version="1.5.004"> <template id="infolog.edit.project" template="" lang="" group="0" version="1.5.004">
<grid width="100%"> <grid width="100%">
<columns> <columns>
<column width="100" class="infolog_normalWrap"/> <column width="120" class="infolog_normalWrap"/>
<column width="115"/> <column/>
<column width="100"/> <column width="7em"/>
<column width="400"/>
</columns> </columns>
<rows> <rows>
<row class="row"> <row class="row">
@ -44,7 +43,6 @@
onchange="let option = this.select_options.find(e=>e.value == this.value) || {label:''};window.app.infolog.et2.getWidgetById('info_price').set_value(option.label.lastIndexOf('(') &lt; 0 ? '' : option.label.slice(option.label.lastIndexOf('(')+1,-1));" onchange="let option = this.select_options.find(e=>e.value == this.value) || {label:''};window.app.infolog.et2.getWidgetById('info_price').set_value(option.label.lastIndexOf('(') &lt; 0 ? '' : option.label.slice(option.label.lastIndexOf('(')+1,-1));"
emptyLabel="None" class="et2_fullWidth"/> emptyLabel="None" class="et2_fullWidth"/>
<et2-number id="info_price"></et2-number> <et2-number id="info_price"></et2-number>
<et2-description></et2-description>
</row> </row>
<row class="row"> <row class="row">
<et2-description value="planned time" for="info_planned_time"></et2-description> <et2-description value="planned time" for="info_planned_time"></et2-description>