diff --git a/addons/project/views/project_portal_project_task_templates.xml b/addons/project/views/project_portal_project_task_templates.xml
index 382af555e97..2c65968f846 100644
--- a/addons/project/views/project_portal_project_task_templates.xml
+++ b/addons/project/views/project_portal_project_task_templates.xml
@@ -256,7 +256,7 @@
Description
-
+
diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js
index 8bc324ff1b0..37569552728 100644
--- a/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js
+++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js
@@ -773,7 +773,6 @@ export const editorCommands = {
const newRow = document.createElement('tr');
newRow.style.height = referenceRowHeight + 'px';
const cells = referenceRow.querySelectorAll('td');
- const referenceRowWidths = [...cells].map(cell => cell.style.width || cell.clientWidth + 'px');
newRow.append(...Array.from(Array(cells.length)).map(() => {
const td = document.createElement('td');
const p = document.createElement('p');
@@ -783,11 +782,10 @@ export const editorCommands = {
}));
referenceRow[beforeOrAfter](newRow);
newRow.style.height = referenceRowHeight + 'px';
- // Preserve the width of the columns (applied only on the first row).
if (getRowIndex(newRow) === 0) {
let columnIndex = 0;
- for (const column of newRow.children) {
- column.style.width = referenceRowWidths[columnIndex];
+ for (const newColumn of newRow.children) {
+ newColumn.style.width = cells[columnIndex].style.width;
cells[columnIndex].style.width = '';
columnIndex++;
}