Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oh-image-card changes image size when action is defined #3002

Open
dujal opened this issue Jan 10, 2025 · 0 comments · May be fixed by #3046
Open

oh-image-card changes image size when action is defined #3002

dujal opened this issue Jan 10, 2025 · 0 comments · May be fixed by #3046
Labels
bug Something isn't working main ui Main UI

Comments

@dujal
Copy link

dujal commented Jan 10, 2025

Action defined in oh-image-card changes image size

When I added an action to oh-image-card in fixed grid layout the image has been scaled to smaler size (maybe added more padding). The same image card seems to be rendered correctly in another page under oh-masonry.

image

Expected behavior

I expect the image in image card looks the same whenever action for card is defined or not.

Steps to reproduce

Following test layout page with two image cards could reproduce the problem.

config:
  layoutType: fixed
  fixedType: grid
  label: test image card
blocks: []
masonry: []
grid:
  - component: oh-grid-item
    config:
      x: 0
      y: 0
      h: 2
      w: 2
    slots:
      default:
        - component: oh-image-card
          config:
            url: 'https://www.pngall.com/wp-content/uploads/8/Sample.png'
            actionModal: widget:ozo_svozy_list
            action: popup
  - component: oh-grid-item
    config:
      x: 2
      y: 0
      h: 2
      w: 2
    slots:
      default:
        - component: oh-image-card
          config:
            url: 'https://www.pngall.com/wp-content/uploads/8/Sample.png'

Your environment

Reproduced on Chrome, Edge and Firefox in Windows 11 as well as openHAB android app and fully kiosk browser on android.

System info:

runtimeInfo:
  version: 4.3.1
  buildString: Release Build
locale: cs-CZ
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 17.0.13
  javaVendor: Debian
  osName: Linux
  osVersion: 6.6.62+rpt-rpi-2712
  osArchitecture: aarch64
  availableProcessors: 4
  freeMemory: 505353264
  totalMemory: 1415577600
  uptime: 806866
  startLevel: 100

Browser console

Browser network traffic

Additional information

@dujal dujal added bug Something isn't working main ui Main UI labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant