diff --git a/src/facilities/salon/salonPassage.js b/src/facilities/salon/salonPassage.js index d619a2c29d093d95c5c27157a60bfa3013a81337..20b0aab88504918ea0b801d8e069723acbcce54c 100644 --- a/src/facilities/salon/salonPassage.js +++ b/src/facilities/salon/salonPassage.js @@ -291,7 +291,7 @@ App.UI.salon = function(slave, cheat = false) { option = options.addOption(`${His} skin is ${slave.skin}.`, "skin", slave); if (App.Medicine.Modification.dyedSkins.includes(slave.skin)) { option.addValue("Remove coloring", slave.origSkin, billMod); - } else if (((slave.skin === "sun tanned") || (slave.skin === "spray tanned"))) { + } else if ((slave.skin === "sun tanned") || (slave.skin === "spray tanned")) { option.addValue("Remove tanning", slave.origSkin, billMod); } diff --git a/src/gui/options/options.js b/src/gui/options/options.js index 12967cf2e552c9559016fb40caf4366002e479df..5ff496ffbfa9cedf0e9cc91094dd523f7753d98b 100644 --- a/src/gui/options/options.js +++ b/src/gui/options/options.js @@ -91,13 +91,17 @@ App.UI.OptionsGroup = (function() { /** * @param {string} [unit] + * @param {string} [length] * @returns {Option} */ - showTextBox(unit) { + showTextBox(unit, length) { this.textbox = true; if (unit) { this.unit = unit; } + if (length) { + this.textBoxLength = length; + } return this; } @@ -318,6 +322,11 @@ App.UI.OptionsGroup = (function() { if (this.unit) { buttonGroup.append(" ", this.unit); } + textbox.style.minWidth = "15em"; + textbox.style.width = currentValue.length + "ch"; + if (this.textBoxLength) { + textbox.style.width = this.textBoxLength; + } } if (this.comment) { const comment = document.createElement("span"); diff --git a/src/npc/startingGirls/startingGirls.js b/src/npc/startingGirls/startingGirls.js index d9db41e273463d0b64822c6d2478d21f6fc19448..8839927356e6e22df4f2fd5e7c54ffc6e690bf6a 100644 --- a/src/npc/startingGirls/startingGirls.js +++ b/src/npc/startingGirls/startingGirls.js @@ -1189,7 +1189,7 @@ App.StartingGirls.profile = function(slave) { App.UI.DOM.appendNewElement("h3", el, "Optional customizations"); options = new App.UI.OptionsGroup(); - options.addOption("Origin story", "origin", slave).showTextBox().addComment("Use complete, capitalized and punctuated sentences."); + options.addOption("Origin story", "origin", slave).showTextBox("", "100em").addComment("Use complete, capitalized and punctuated sentences."); options.addOption("Origin override", "originOverride", V) .addValue("Enable", 1).on()