Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Plugin on tablet issue

    Scheduled Pinned Locked Moved Windy Plugins
    4 Posts 3 Posters 148 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • francescogolaF Offline
      francescogola | Premium
      last edited by

      Hello Team and Devs,
      I just updated my plugin to be compatible with mobile devices too.

      Plugin name: Clouds Horizon Distance
      Repository: https://github.com/chiotas/clouds-horizon-distance

      On the mobile app, it's working great: I used the mobileUI: "small", and it's visualising the info cards I placed below the timeline correctly. Everything is working smoothly and reactively.

      However, on the tablet version (iPad), it's not working properly. I see that it's not really responsive (super slow) both loading the plugin and using it, plus it's not loading the mobileui:"small" interface as it's not displaying the info cards below the timeline. (I attach a couple of images here).

      Am I missing something for the tablet app version?

      Thank you!

      IMG_2461.PNG
      tablet.png

      Francesco

      P rittelsR 2 Replies Last reply Reply Quote 0
      • P Offline
        pavelmedia External Developers @francescogola | Premium
        last edited by

        Hi @francescogola, thanks for this report. Turns out plugins weren't correctly implemented on tablets on our end. We'll roll out a fix in an upcoming version.

        1 Reply Last reply Reply Quote 0
        • rittelsR Offline
          rittels Code contributor @francescogola | Premium
          last edited by

          @francescogola

          In the meantime you can this:

          Tablets use the desktop UI at the moment, and do not display embedded plugins correctly.

          To show an embedded plugin in the small window at the bottom, you can add this:

          import plugins from '@windy/plugins';
          import { isTablet } from '@windy/rootScope';
          
          const thisPlugin = plugins['windy-plugin-your-plugin'];
          
          if (isTablet && thisPlugin.pane == 'embedded') {
              const { node } = thisPlugin.window;
              node.classList.remove('fg-white', 'bg-transparent-blur', 'rounded-box');
              node.classList.add('plugin-mobile-bottom-small');
              document
                  .querySelector('[data-plugin="bottom-below-controls-mobile"]')
                  .appendChild(node);
              node.style.width = 'auto';
              node.style.margin = '0px';
              thisPlugin.pane = 'small-bottom-bottom';
          }
          
          francescogolaF 1 Reply Last reply Reply Quote 0
          • francescogolaF Offline
            francescogola @rittels | Premium
            last edited by

            @rittels thank you so much!

            Well, I think I'll wait for the next Windy update so not to submit another plugin update in the meantime.

            Thank you so much and looking forward for the update

            Francesco

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Windy Community  |  Powered by excellent NodeBB
            Terms of Use     Privacy Policy     Windy.com