Skip to content

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

limit width of fields in timelog modals

ulferts70559bded208
diff --git a/app/assets/stylesheets/content/_attributes_key_value.sass b/app/assets/stylesheets/content/_attributes_key_value.sass
index 82fa8b0f3ca..574db17e319 100644
--- a/app/assets/stylesheets/content/_attributes_key_value.sass
+++ b/app/assets/stylesheets/content/_attributes_key_value.sass
@@ -92,6 +92,5 @@
max-width: 200px
.attributes-map--value
- // empty for now but it makes sense to also have it present in the style declaration IMO
zoom: 1
@include text-shortener(false)
diff --git a/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass b/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass
index fd471c58fd6..a514bbbcfb3 100644
--- a/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass
+++ b/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass
@@ -27,6 +27,10 @@
border-radius: 2px
border-color: darkblue
+ &.-tiny
+ input:not([type='checkbox'])
+ max-width: 100px
+
.inline-label
.form-label,
.icon-context:before
diff --git a/frontend/src/app/modules/time_entries/form/form.component.html b/frontend/src/app/modules/time_entries/form/form.component.html
index 0ec1d2ff398..edd31ae2032 100644
--- a/frontend/src/app/modules/time_entries/form/form.component.html
+++ b/frontend/src/app/modules/time_entries/form/form.component.html
@@ -8,6 +8,7 @@
<div class="attributes-map--key" [textContent]="text.attributes.spentOn"></div>
<div class="attributes-map--value">
<editable-attribute-field [resource]="entry"
+ [wrapperClasses]="'-tiny'"
[fieldName]="'spentOn'">
</editable-attribute-field>
</div>
@@ -15,6 +16,7 @@
<div class="attributes-map--key" [textContent]="text.attributes.hours"></div>
<div class="attributes-map--value">
<editable-attribute-field [resource]="entry"
+ [wrapperClasses]="'-tiny'"
[fieldName]="'hours'">
</editable-attribute-field>
</div>