Bladeren bron

Smaller links

Reddo 5 jaren geleden
bovenliggende
commit
5fd918f636
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      app/World/Classes/Action/ActionInventory.ts

+ 2 - 1
app/World/Classes/Action/ActionInventory.ts

@@ -25,6 +25,7 @@ class ActionInventory extends Action {
     public static async createButton (thing : Thing, resolve : (t : Thing) => void) {
         let p = document.createElement("p");
         p.classList.add("choice");
+        p.classList.add("small");
         let elements = await ((new Say(thing)).getPureElements());
         elements.forEach(ele => {
             p.appendChild(ele);
@@ -52,7 +53,7 @@ class ActionInventory extends Action {
                 Controls.KeyHandler.reset();
                 let say = new Say();
                 if (wielded.length > 0) {
-                    say.add(new SayBold("Wielded:"), Say.LINE_BREAK);
+                    say.add(new SayBold("Wielded:"), Say.PARAGRAPH_BREAK);
                     for (let i = 0; i < wielded.length; i++) {
                         say.add(await ActionInventory.createButton(wielded[i], resolve));
                     }