mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-05 21:16:26 -05:00
Teambuilder: Fix import/export textbox size
This commit is contained in:
parent
4e2842d7e6
commit
9b57f521a5
|
|
@ -113,7 +113,7 @@
|
|||
|
||||
if (this.exportMode) {
|
||||
buf = '<div class="pad"><button name="back"><i class="icon-chevron-left"></i> Team List</button> <button name="saveBackup" class="savebutton"><i class="icon-save"></i> Save</button></div>';
|
||||
buf += '<textarea class="teamedit textbox" rows="17">'+Tools.escapeHTML(TeambuilderRoom.teamsToText())+'</textarea>';
|
||||
buf += '<div class="teamedit"><textarea class="textbox" rows="17">'+Tools.escapeHTML(TeambuilderRoom.teamsToText())+'</textarea></div>';
|
||||
this.$el.html(buf);
|
||||
return;
|
||||
}
|
||||
|
|
@ -223,7 +223,7 @@
|
|||
}
|
||||
},
|
||||
saveBackup: function() {
|
||||
TeambuilderRoom.parseText(this.$('.teamedit').val(), true);
|
||||
TeambuilderRoom.parseText(this.$('.teamedit textarea').val(), true);
|
||||
Storage.saveAllTeams();
|
||||
this.back();
|
||||
},
|
||||
|
|
@ -278,7 +278,7 @@
|
|||
var buf = '';
|
||||
if (this.exportMode) {
|
||||
buf = '<div class="pad"><button name="back"><i class="icon-chevron-left"></i> Team List</button> <input class="textbox teamnameedit" type="text" class="teamnameedit" size="30" value="'+Tools.escapeHTML(this.curTeam.name)+'" /> <button name="saveImport"><i class="icon-upload-alt"></i> Import/Export</button> <button name="saveImport" class="savebutton"><i class="icon-save"></i> Save</button></div>';
|
||||
buf += '<textarea class="teamedit textbox" rows="17">'+Tools.escapeHTML(TeambuilderRoom.toText(this.curTeam.team))+'</textarea>';
|
||||
buf += '<div class="teamedit"><textarea class="textbox" rows="17">'+Tools.escapeHTML(TeambuilderRoom.toText(this.curTeam.team))+'</textarea></div>';
|
||||
} else {
|
||||
buf = '<div class="pad"><button name="back"><i class="icon-chevron-left"></i> Team List</button> <input class="textbox teamnameedit" type="text" class="teamnameedit" size="30" value="'+Tools.escapeHTML(this.curTeam.name)+'" /> <button name="import"><i class="icon-upload-alt"></i> Import/Export</button></div>';
|
||||
buf += '<div class="teamchartbox">';
|
||||
|
|
@ -401,7 +401,7 @@
|
|||
},
|
||||
|
||||
saveImport: function() {
|
||||
this.curTeam.team = TeambuilderRoom.parseText(this.$('.teamedit').val());
|
||||
this.curTeam.team = TeambuilderRoom.parseText(this.$('.teamedit textarea').val());
|
||||
this.back();
|
||||
},
|
||||
addPokemon: function() {
|
||||
|
|
|
|||
|
|
@ -1759,14 +1759,18 @@ div[class^='tournament-message-'], div[class*=' tournament-message-'] {
|
|||
display: block;
|
||||
top: 45px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
text-align: left;
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
}
|
||||
.teamedit textarea {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.teambar {
|
||||
position: absolute;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user