Hide badge when count is zero
When the number of attachments or notes to read is zero, the badge is not really necessary. And takes too much user attention for really no information.
So I propose to hide it when quantity is zero.
All legacy (hg-git based) Projects have been automatically migrated to native with the upgrade of 2025-01-23
When the number of attachments or notes to read is zero, the badge is not really necessary. And takes too much user attention for really no information.
So I propose to hide it when quantity is zero.
added sao type::feature + 1 deleted label
I do not agree, the badget with the value zero show that the information has been retrieved.
added 1 deleted label and removed 1 deleted label
review39201002 updated at https://codereview.tryton.org/39201002/#ps1
Indeed #7251 (closed) went in the opposite direction to set a fixed width for the badge to avoid jump in button position.
But the badge could be floating so this way we could hide it without changing the size of toolbar. And as #7251 (closed) adds tooltip with the number, we can non display the 0.
So I updated the review to make badge floating and limit to 99+.
assigned to @ced
added 1 deleted label and removed 1 deleted label
review39201002 updated at https://codereview.tryton.org/39201002/#ps20001
New changeset bc928d86ef39 by Cédric Krier in branch 'default':
Hide badge when zero and use absolute position
http://hg.tryton.org/sao/rev/bc928d86ef39
added 1 deleted label and removed 1 deleted label
closed