-
Notifications
You must be signed in to change notification settings - Fork 4
Add title to the status icon #654
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
base: main
Are you sure you want to change the base?
Conversation
I was confused what they mean, and this will help users understand. This seems to fail linting and when linted does a crazy single line string, which I don't think we want?
| {% else %} | ||
| {% trans "Build in progress" %} | ||
| {% endif %}"> | ||
| </i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid a multiline attribute, this should all be wrapped with spaceless similar to the attributes above this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaceless only removes spaces between HTML tags, not inside of text content: https://docs.djangoproject.com/en/5.2/ref/templates/builtins/#spaceless
Only space between tags is removed – not space between tags and text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah yeah you're right. This is going to be another case of fighting with Django templates to do something really basic. There might be a way to use {% filter cut:"" %} but this almost certainly requires a small, custom filter.
These blocks are all trying to do the same thing, so should all match.
Adding a title to an element is a native browser thing, FUI doesn't alter the styling of these at all. The title popup isn't styled weird, it's just displaying all of the whitespace included in the attribute. It might be possible to control whitespace with CSS but I feel that would be getting pretty deep in the weeds for a fix. I regret not preempting a migration to Jinja templates, it would have solved a lot of Django template headaches. |


I was confused what they mean,
and this will help users understand.
This seems to fail linting and when linted does a crazy single line string,
which I don't think we want?