Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit a2ff334

Browse files
committed
Fix textarea in systems with heavy css customisation
1 parent 9957970 commit a2ff334

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Diff for: easytable.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Hooks.on("renderSidebarTab", async (app, html) => {
33
return;
44
}
55
if (app.options.id == "tables") {
6-
// -- CSV Mode --
6+
// -- Values Mode --
77
let csvButton = $(`<button class='new-easytable'><i class='fas fa-file-csv'></i> ${game.i18n.localize("EASYTABLE.ui.button-csv-title")}</button>`)
88
let settings = game.settings.get("EasyTable", "tableSettings")
99
let title = settings.title;
@@ -17,7 +17,7 @@ Hooks.on("renderSidebarTab", async (app, html) => {
1717
<div>
1818
<div class="form-group"><div>${game.i18n.localize("EASYTABLE.ui.dialog.csv.table-title")}</div><input type='text' name="tableTitle" value="${title}"/></div>
1919
<div class="form-group"><div>${game.i18n.localize("EASYTABLE.ui.dialog.csv.table-description")}</div><input type='text' name="tableDescription" value="${description}"/></div>
20-
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.csv.csv-data-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.csv.csv-data")}</div><textarea name="csv">${csvData}</textarea></div>
20+
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.csv.csv-data-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.csv.csv-data")}</div><textarea class="easytable-textarea" name="csv">${csvData}</textarea></div>
2121
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.csv.separator-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.csv.separator")}</div><input type='text' name="separator" maxlength="1" value="${separator}"/></div>
2222
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.csv.defaultcollection-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.csv.defaultcollection")}</div>
2323
<select name="defaultcollection" id="defaultcollection">
@@ -85,7 +85,7 @@ Hooks.on("renderSidebarTab", async (app, html) => {
8585
content: `<div>
8686
<div class="form-group"><div>${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.table-title")}</div><input type='text' name="tableTitle" value="${title}"/></div>
8787
<div class="form-group"><div>${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.table-description")}</div><input type='text' name="tableDescription" value=""/></div>
88-
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.table-data-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.table-data")}</div><textarea name="tableData"></textarea></div>
88+
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.table-data-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.table-data")}</div><textarea class="easytable-textarea" name="tableData"></textarea></div>
8989
<div class="form-group" title="${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.safemode-tooltip")}"><div>${game.i18n.localize("EASYTABLE.ui.dialog.tablepaste.safemode")}</div><input type="checkbox" id="safeMode" name="safeMode"></div>
9090
<hr/>
9191
</div>
@@ -423,7 +423,7 @@ class EasyTable {
423423
`<h2>
424424
${game.i18n.localize('EASYTABLE.ui.dialog.export.output.separator-issue-none')}
425425
</h2>`}
426-
<textarea style="height:300px">${output.trim()}</textarea>`,
426+
<textarea class="easytable-textarea" style="height:300px">${output.trim()}</textarea>`,
427427
buttons: {
428428
Copy: {
429429
label: game.i18n.localize('EASYTABLE.ui.dialog.export.output.button-copy'),

Diff for: styles.css

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ span.new-easytable {
22
display: flex;
33
margin: -5px 0px -10px 5px;
44
}
5+
6+
.easytable-textarea {
7+
color: unset;
8+
}

0 commit comments

Comments
 (0)