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

fixed section title input background, cleanup

Jonas Jabari8de0b918717f
diff --git a/modules/meeting/app/components/meeting_sections/header_component.html.erb b/modules/meeting/app/components/meeting_sections/header_component.html.erb
index 2dcb7910544..d421dc95986 100644
--- a/modules/meeting/app/components/meeting_sections/header_component.html.erb
+++ b/modules/meeting/app/components/meeting_sections/header_component.html.erb
@@ -1,5 +1,5 @@
<%=
- component_wrapper(class: "op-meeting-section-container", data: { test_selector: "meeting-section-container-#{@meeting_section.id}" }) do
+ component_wrapper(class: "op-meeting-section-container", data: wrapper_data_attributes) do
if @state == :show
grid_layout('op-meeting-section', tag: :div) do |grid|
grid.with_area(:'drag-handle', tag: :div) do
diff --git a/modules/meeting/app/components/meeting_sections/header_component.rb b/modules/meeting/app/components/meeting_sections/header_component.rb
index a68219c747e..a8b275e320d 100644
--- a/modules/meeting/app/components/meeting_sections/header_component.rb
+++ b/modules/meeting/app/components/meeting_sections/header_component.rb
@@ -47,6 +47,12 @@ module MeetingSections
@meeting_section.id
end
+ def wrapper_data_attributes
+ {
+ test_selector: "meeting-section-container-#{@meeting_section.id}"
+ }
+ end
+
def drag_and_drop_target_config
{
"is-drag-and-drop-target": true,
diff --git a/modules/meeting/app/forms/meeting_section/title.rb b/modules/meeting/app/forms/meeting_section/title.rb
index 695566bbf5e..788698479c2 100644
--- a/modules/meeting/app/forms/meeting_section/title.rb
+++ b/modules/meeting/app/forms/meeting_section/title.rb
@@ -36,6 +36,7 @@ class MeetingSection::Title < ApplicationForm
visually_hide_label: true,
required: true,
autofocus: true,
+ bg: :default,
data: {
action: "keydown.esc->meeting-section-form#cancel"
}