Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.73k stars 709 forks source link

[Bug] Image flashes then disappears when using `background-image` css property #3765

Closed iamhrigved closed 1 week ago

iamhrigved commented 1 week ago

Problem

https://github.com/user-attachments/assets/6fb91654-8b6f-4ba3-8fba-9febe23b158e

This happens when I refresh my ~/.config/waybar/style.css file by making a change and saving it.

This is my config

"custom/claude": {
    "format": "  ",
    "tooltip": true,
    "tooltip-format": "Open Claude AI!",
    "on-click": "brave --app=https://claude.ai",
}
#custom-claude {
    background-image: url("/home/hrigved/Pictures/Icons/claude.png");
}

More Context

The Arch logo you see, is a waybar/image module and not a background-image css property.

iamhrigved commented 1 week ago

Solved. Forgot to add background-size: cover;