Skip to content

Remain table size with warning remark #270

@realoliwer

Description

@realoliwer

I'm not sure, but I think back in the days the table size remained the same with a warning remark, but since some time the table gets wider when there is a warning (like train is canceled which is shown with floating text). I'd like the module to stay the same size, so I looked at the module and changed the style.css for me which workes great so far. I'm new to work with github, so honestly not sure if this is worth making a fork and asking for a pull request, but this is what my change looks like:

  /* Marquee for the warning remarks field */
  .mmm-pth-warning-remarks {
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.8em;
    width: 100%;
    max-width: 0;
    min-width: 100%;
    display: block;

    span {
      font-weight: 400;
      animation: mmm-pth-warning-remarks 600s linear infinite;
      display: inline-block;
      padding-left: 20%;
    }
  }

I never discovered anyhting than the floating text as a warning remark, so the original size is fine for floating text (in my oppinion), but if there is a longer warning where the text does not float, the text would be cut. But as written, I've never seen that. Maybe a "text-overflow: ellipsis;" could be a compromise for that as well, but cannot really test as I never saw a static text block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions