Index: gc_lang/fr/mailext/content/lex_editor.css ================================================================== --- gc_lang/fr/mailext/content/lex_editor.css +++ gc_lang/fr/mailext/content/lex_editor.css @@ -80,12 +80,12 @@ #lexicon_table { width: 600px; height: 650px; } -.list_header { - padding: 2px 10px; +.listheader { + padding: 2px 0; font-weight: bold; background-color: hsl(0, 0%, 95%); border-bottom: 1px solid hsl(0, 0%, 50%); } .info_label { Index: gc_lang/fr/mailext/content/lex_editor.js ================================================================== --- gc_lang/fr/mailext/content/lex_editor.js +++ gc_lang/fr/mailext/content/lex_editor.js @@ -63,13 +63,13 @@ this.nEntry = 0 this._createHeader(); } _createHeader () { - let xListheadNode = createNode("richlistitem"); + let xListheadNode = createNode("richlistitem", { class: "listheader" }); for (let i=0; i < this.lColumn.length; i++) { - xListheadNode.appendChild(createNode("label", { class: "listheader", value: this.lColumn[i], flex: this.lColumnWidth[i] })); + xListheadNode.appendChild(createNode("label", { value: this.lColumn[i], width: this.lColumnWidth[i] })); } this.xTable.appendChild(xListheadNode); } clear () { @@ -112,12 +112,12 @@ } } _addRow (lData) { let xRowNode = createNode("richlistitem", { id: this.sNodeId + "_item_" + this.iEntryIndex, value: this.iEntryIndex }); - for (let data of lData) { - xRowNode.appendChild(createNode("label", { class:"listcell", label: data })); + for (let i=0; i < lData.length; i++) { + xRowNode.appendChild(createNode("label", { class: "listcell", value: lData[i], width: this.lColumnWidth[i] })); } this.xTable.appendChild(xRowNode); this.iEntryIndex += 1; } @@ -542,14 +542,14 @@ oTagsTable.fill(lEntry); } } -const oGenWordsTable = new Table("generated_words_table", ["Flexions", "Étiquettes"], [1, 1], "progress_new_words"); -const oLexiconTable = new Table("lexicon_table", ["Flexions", "Lemmes", "Étiquettes"], [10, 7, 10], "progress_lexicon", "num_entries"); -const oSearchTable = new Table("search_table", ["Flexions", "Lemmes", "Étiquettes"], [10, 7, 10], "progress_search", "search_num_entries"); -const oTagsTable = new Table("tags_table", ["Étiquette", "Signification"], [1, 10], "progress_lexicon"); +const oGenWordsTable = new Table("generated_words_table", ["Flexions", "Étiquettes"], ["125px", "225px"], "progress_new_words"); +const oLexiconTable = new Table("lexicon_table", ["Flexions", "Lemmes", "Étiquettes"], ["190px", "150px", "200px"], "progress_lexicon", "num_entries"); +const oSearchTable = new Table("search_table", ["Flexions", "Lemmes", "Étiquettes"], ["190px", "150px", "200px"], "progress_search", "search_num_entries"); +const oTagsTable = new Table("tags_table", ["Étiquette", "Signification"], ["75px", "475px"], "progress_lexicon"); conj.init(helpers.loadFile("resource://grammalecte/fr/conj_data.json")); oTagsInfo.load();