mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -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
Binary file not shown.
|
|
@ -103,8 +103,9 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
||||||
legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
|
legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
|
||||||
legal += "<br>";
|
legal += "<br>";
|
||||||
for (String ruling : rulings) {
|
for (String ruling : rulings) {
|
||||||
|
legal += "<p style='margin: 2px'>";
|
||||||
legal += ruling;
|
legal += ruling;
|
||||||
legal += "<br><br>";
|
legal += "</p>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -136,7 +137,7 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
||||||
public void run () {
|
public void run () {
|
||||||
if (!card.equals(currentCard)) return;
|
if (!card.equals(currentCard)) return;
|
||||||
setText(buffer.toString());
|
setText(buffer.toString());
|
||||||
//System.out.println(buffer.toString());
|
System.out.println(buffer.toString());
|
||||||
setCaretPosition(0);
|
setCaretPosition(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue