AmoebeLabs / swiss-army-knife-card

The versatile custom Swiss Army Knife card for Home Assistant allows you to create your unique visualization using several graphical tools, styling options and animations.
234 stars 19 forks source link

scaling not working on mobile (android) #245

Open mrgrlscz opened 12 months ago

mrgrlscz commented 12 months ago

Swiss Army Knife version: v2.5.1

Bug description

When introducing scaling at a toolset level, card do not display the same way on mobile (android app 2023.9.2-full) and desktop.

To Reproduce

title: test1254
path: test1254
panel: false
cards:
  - type: 'custom:swiss-army-knife-card'
    layout:
      toolsets:
        - toolset: test1254
          position:
            cx: 50
            cy: 50
            scale: .6
          tools:
            - type: rectangle
              id: 0
              position:
                cx: 50
                cy: 50
                width: 50
                height: 50
              styles:
                rectangle:
                  fill: red

Desktop:

WhatsApp Image 2023-10-11 à 00 21 28 Mobile: WhatsApp Image 2023-10-11 à 00 21 13

Expected behavior

Just the card looking exactly the same on mobile AND desktop

Screenshots

Desktop: WhatsApp Image 2023-10-11 à 00 03 56 Mobile: WhatsApp Image 2023-10-11 à 00 02 56

Desktop browser (please complete the following information):

Companion App on Smartphone/Tablet (please complete the following information):

github-actions[bot] commented 12 months ago

Thank you for creating your first issue for the Swiss Army Knife custom card!