IO-1523 Long production view name.

This commit is contained in:
Patrick Fic
2021-12-14 10:28:41 -08:00
parent 8691ff05e1
commit 920c8f6910

View File

@@ -113,6 +113,7 @@ export function ProductionListTable({
onSelect={handleSelect}
placeholder={t("production.labels.selectview")}
optionLabelProp="label"
dropdownMatchSelectWidth={false}
defaultValue={defaultView}
>
{bodyshop.production_config.map((config) => (
@@ -120,23 +121,31 @@ export function ProductionListTable({
<div
style={{
display: "flex",
width: "100%",
justifyContent: "space-between",
alignItems: "center",
}}
>
<span style={{ flex: 1 }}>{config.name}</span>
<span
style={{
flex: 1,
maxWidth: "80%",
marginRight: "1rem",
textOverflow: "ellipsis",
}}
>
{config.name}
</span>
<Popconfirm
placement="right"
title={t("general.labels.areyousure")}
onConfirm={() => handleTrash(config.name)}
>
<Button
<DeleteOutlined
onClick={(e) => {
e.stopPropagation();
}}
>
<DeleteOutlined />
</Button>
/>
</Popconfirm>
</div>
</Select.Option>