mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[card.plugin] replaced using double <br> in tooltips by using paragraph with margin - looks much better and fits the text of most cards now
This commit is contained in:
parent
760f059fb8
commit
c85bd72248
2 changed files with 3 additions and 2 deletions
|
|
@ -103,8 +103,9 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
|||
legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
|
||||
legal += "<br>";
|
||||
for (String ruling : rulings) {
|
||||
legal += "<p style='margin: 2px'>";
|
||||
legal += ruling;
|
||||
legal += "<br><br>";
|
||||
legal += "</p>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -136,7 +137,7 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
|||
public void run () {
|
||||
if (!card.equals(currentCard)) return;
|
||||
setText(buffer.toString());
|
||||
//System.out.println(buffer.toString());
|
||||
System.out.println(buffer.toString());
|
||||
setCaretPosition(0);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue