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

Simplify the css for filling datepicker space in a table row

Dombi Attila88405c3b8ebf
diff --git a/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass b/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
index e8e04ddc990..f8188a4f367 100644
--- a/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
+++ b/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
@@ -12,10 +12,6 @@
&_wide
max-width: 600px
- &_fill_space
- .spot-drop-modal
- display: block
-
&--banner
margin-bottom: $spot-spacing-1
diff --git a/frontend/src/global_styles/content/_tables.sass b/frontend/src/global_styles/content/_tables.sass
index 03fe234aefa..443b9968ac9 100644
--- a/frontend/src/global_styles/content/_tables.sass
+++ b/frontend/src/global_styles/content/_tables.sass
@@ -141,10 +141,14 @@ tr
&.locked, &.registered, &.locked a, &.registered a
color: #aaa
-td.hours
- font-weight: bold
- .hours-dec
- font-size: 0.9em
+td
+ &.hours
+ font-weight: bold
+ .hours-dec
+ font-size: 0.9em
+ .date
+ .spot-drop-modal
+ display: block
th.hidden
display: none
diff --git a/modules/costs/app/views/cost_types/_rate.html.erb b/modules/costs/app/views/cost_types/_rate.html.erb
index d5a53035bb8..2bd75c40d73 100644
--- a/modules/costs/app/views/cost_types/_rate.html.erb
+++ b/modules/costs/app/views/cost_types/_rate.html.erb
@@ -51,7 +51,7 @@ See COPYRIGHT and LICENSE files for more details.
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label>
<%= rate_form.date_picker :valid_from,
index: id_or_index,
- class: 'date costs-date-picker op-datepicker-modal_fill_space',
+ class: 'date costs-date-picker',
no_field_container: true,
no_label: true,
required: templated ? false : true %>
diff --git a/modules/costs/app/views/hourly_rates/_rate.html.erb b/modules/costs/app/views/hourly_rates/_rate.html.erb
index 02b0f4fcb12..d7183508266 100644
--- a/modules/costs/app/views/hourly_rates/_rate.html.erb
+++ b/modules/costs/app/views/hourly_rates/_rate.html.erb
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label>
<%= rate_form.date_picker :valid_from,
index: id_or_index,
- class: 'date costs-date-picker op-datepicker-modal_fill_space',
+ class: 'date costs-date-picker',
no_label: true,
no_field_container: true %>
</td>