fix(configurator): widen Template dropdown in Add Variant strip
Reported 2026-05-20: the Template dropdown in the Part > Process
Composer's 'Add Variant from Template' row truncated long recipe
names to 4 characters ("Cher" instead of "Chemical Conversion …").
The hard-coded max-width: 280px was set before the curated template
catalog grew names like "Chemical Conversion — Iridite Type II Cl 3"
and "ENP-STEEL-BASIC — Standard Heavy Phos".
Fix: replace the rigid max-width with a flex sizing that gives the
dropdown room to grow:
- min-width: 360px (full common recipe name fits)
- flex: 1 1 360px (grows to fill available space)
- max-width: 560px (cap so it doesn't push the buttons off-screen)
Same flex pattern applied to the Variant label input (slightly
narrower min/max).
Also: pulled the entech-side version of fp_part_process_composer.xml
back into the local repo — local was stale (one 'Add Variant' button;
entech had the dual 'Add — Tree' / 'Add — Simple' buttons that
landed in an out-of-band edit).
Module: fusion_plating_configurator 19.0.21.5.0 → 19.0.21.5.1.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Fusion Plating — Configurator',
|
||||
'version': '19.0.21.5.0',
|
||||
'version': '19.0.21.5.1',
|
||||
'category': 'Manufacturing/Plating',
|
||||
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
|
||||
'description': """
|
||||
|
||||
@@ -120,7 +120,12 @@
|
||||
<h4>Add Variant from Template</h4>
|
||||
<div class="d-flex gap-2 align-items-center flex-wrap">
|
||||
<label class="me-2">Template:</label>
|
||||
<select class="form-select" style="max-width: 280px;"
|
||||
<!-- Bumped min-width 280px → 360px and let it
|
||||
flex-grow so long template names (e.g.
|
||||
"Chemical Conversion — Iridite Type II Cl 3")
|
||||
don't truncate to "Chem…". Reported 2026-05-20. -->
|
||||
<select class="form-select"
|
||||
style="min-width: 360px; flex: 1 1 360px; max-width: 560px;"
|
||||
t-on-change="onSelectTemplate">
|
||||
<t t-foreach="state.templates" t-as="tpl" t-key="tpl.id">
|
||||
<option t-att-value="tpl.id"
|
||||
@@ -129,14 +134,22 @@
|
||||
</option>
|
||||
</t>
|
||||
</select>
|
||||
<input class="form-control" style="max-width: 240px;"
|
||||
<input class="form-control"
|
||||
style="min-width: 220px; flex: 1 1 220px; max-width: 320px;"
|
||||
placeholder="Variant label (e.g. Standard ENP)"
|
||||
t-att-value="state.newVariantLabel"
|
||||
t-on-input="onNewLabelInput"/>
|
||||
<button class="btn btn-primary"
|
||||
t-on-click="onAddVariantFromTemplate"
|
||||
t-att-disabled="state.busy or !state.selectedTemplateId">
|
||||
<i class="fa fa-plus"/> Add Variant
|
||||
t-on-click="() => this.onAddVariantFromTemplate('tree')"
|
||||
t-att-disabled="state.busy or !state.selectedTemplateId"
|
||||
title="Add the variant and open it in the Tree Editor">
|
||||
<i class="fa fa-sitemap me-1"/> Add — Tree
|
||||
</button>
|
||||
<button class="btn btn-primary"
|
||||
t-on-click="() => this.onAddVariantFromTemplate('simple')"
|
||||
t-att-disabled="state.busy or !state.selectedTemplateId"
|
||||
title="Add the variant and open it in the Simple Editor">
|
||||
<i class="fa fa-list me-1"/> Add — Simple
|
||||
</button>
|
||||
</div>
|
||||
<p class="text-muted small mt-1">
|
||||
|
||||
Reference in New Issue
Block a user