From eeaa229523eaaaf729f13211cbc73ed4b9cf8a5d Mon Sep 17 00:00:00 2001 From: Pols12 Date: Sun, 13 Mar 2022 22:08:01 +0100 Subject: [PATCH] dialogInsertTable: empty preview-hidden row to hide header row when needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In “Insert table” dialog, when checking/unchecking “Add header row”, Example preview first row switches between preview-hidden and preview-header. Previously, preview-hidden contained 3 TD cells (while preview-header contains 3 TH cells). This commit removes the 3 TD to hide the TH instead of replacing with TD, since, in the generated wikitext, the header row is not included in row count. Bug: T303690 Change-Id: I38c1bb081a30e25875de8beaadccc075189ad397 --- modules/templates/dialogInsertTable.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/templates/dialogInsertTable.html b/modules/templates/dialogInsertTable.html index cd2c7b39..49778b57 100644 --- a/modules/templates/dialogInsertTable.html +++ b/modules/templates/dialogInsertTable.html @@ -39,9 +39,6 @@ - - -