So I am using a goto plugin, and I want to make the choices larger font so they are easier to see. However anything over 20px starts cutting off on an ipad.

Is there anyway around this?

the line is:

[goto([truth], [font(“Truth”, “Bangers”, “35px”, “#3013a1”)])]

  • BluePower
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    20 days ago

    Found an easy temporary solution for this; try adding this into the HTML panel and see if there’s any effect:

    <style>
      .goto-plugin {display: inline-block}
    </style>
    

    Anyways, time for a bug report @[email protected]: It seems like the text is cut off when the font plugin is combined with the goto plugin in some devices due to force-inline styling by the latter.

    • drdrai@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      20 days ago

      Sorry I am super new to this and am learning this on my own. Where do I put that? Does it matter where in the HTML panel?

      <style> .goto-plugin {display: inline-block} </style>

      • BluePower
        link
        fedilink
        English
        arrow-up
        2
        ·
        20 days ago

        You can put it anywhere in the HTML panel and it’ll work fine, but I do recommend putting it at the bottom of the code like so:

        • drdrai@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          19 days ago

          You want another challenge? :D

          How do I make the font plugin work on this piece?

          [p = makePlayerList(), currentIndex = 0, currentPlayer = p[currentIndex]] is going first.

          I can get the font on the “is going first” to work but the name it chooses from the list is still small and default, and I just can’t wrap my head around where to put the font tags.

          • BluePower
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            18 days ago

            Can you give a more detailed explanation (and what you have tried so far)? You can message me if you don’t want to post it in this thread.

    • drdrai@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 days ago

      I copy and pasted that and got an error… Apologies if I did it wrong. It didnt change anything on the game

      An error has occurred near line number 5: There’s a problem with the ‘0ea09xfgc0’ generator. You’ve created a top-level list called “<style>”, which is not allowed. Unfortunately top-level list names are subject to some strict rules: They must not contain any spaces They must only contain letters (lower or upper case), numbers and underscores (“_”) They must not begin with a number They must not be any of the following special “reserved” names: update, do, if, in, for, let, new, try, var, case, else, enum, eval, null, this, true, void, with, await, break, catch, class, const, false, super, throw, while, yield, delete, export, import, public, return, static, switch, typeof, default, extends, finally, package, private, continue, debugger, function, arguments, interface, protected, implements, instanceof Sorry for the inconvenience! These rules may seem strange, but they’re needed to make the more advanced features of the perchance engine work.

      • BluePower
        link
        fedilink
        English
        arrow-up
        2
        ·
        19 days ago

        Just some context, this error seems to only happen if you put that style snippet into the list panel, not the HTML panel (I know you might have found the solution already).