Skip to content

Improve padding behavior for scrolling_label with left and right styles #659

@iwdath

Description

@iwdath

What is the request?

I like the scrolling_label feature, but it does not behave well when the label size is smaller than the value defined in max_field_size.

Why is it useful?

In the media widget, label_padding and even thumbnail_padding are ignored when scrolling_label is enabled with style: 'left' or 'right'. When the label text is shorter than max_field_size, it stretches to the full width of the thumbnail, which looks visually incorrect.

Image

I suggest adding support for at least one of these padding options when the label is shorter than max_field_size. Ideally, I would also prefer the padding to remain applied while the text is scrolling, similar to how it works with style: 'bounce' and 'bounce-ease'.

Maybe this could be controlled with an additional option that enables or disables padding for style: 'left' and 'right'.

How could it be implemented?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new functionality or an enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions