OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix replacement-label width on safari
ulferts7fb28a915fef
diff --git a/frontend/src/global_styles/content/_attributes_key_value.sass b/frontend/src/global_styles/content/_attributes_key_value.sassindex 8dcc7e4fd55..7d7083bff70 100644--- a/frontend/src/global_styles/content/_attributes_key_value.sass+++ b/frontend/src/global_styles/content/_attributes_key_value.sass@@ -40,10 +40,23 @@padding: 0.375rem 0font-weight: bold// Ensure that the text is shortened while the help icon will be displayed+ // The flex and max-width of wp-replacement-label and attribute-help-text+ // are tuned to:+ // * have the label be displayed in total if there is enough place (safari+ // tends to sometimes fall back to ellipsis too early, e.g. for 'Category')+ // * Have the label grow to the full width if necessary and only apply ellipsis+ // after that.+ // * have the attribute-help-text positioned as far to the left as possible so to be+ // right after the label.+ // It is unclear why in `flex: 100 0 auto` the 100 seems to be doing the trick (MAGIC NUMBER).+ // It does not work with e.g. 1000 or 10> wp-replacement-label@include text-shortener- flex: 0 1 autopadding-right: $spot-spacing-0_5+ flex: 1 1 auto+ max-width: 100%+ > attribute-help-text+ flex: 100 0 auto.attributes-key-value--value-containerdisplay: flex