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

Use flex instead of grid for outcome form layout

Mir Bhatia90fca603f2f8
diff --git a/modules/meeting/app/components/_index.sass b/modules/meeting/app/components/_index.sass
index 9869779eb68..4a6c5017df5 100644
--- a/modules/meeting/app/components/_index.sass
+++ b/modules/meeting/app/components/_index.sass
@@ -5,5 +5,4 @@
@import "./meetings/side_panel/participants_component.sass"
@import "./recurring_meetings/table_header_component.sass"
@import "./meeting_agenda_items/outcomes/show_notes_component.sass"
-@import "./meeting_agenda_items/outcomes/form_component.sass"
@import "./meetings/header_infoline_component.sass"
diff --git a/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erb
index 26c7cd642d8..45f8652dc6b 100644
--- a/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.html.erb
@@ -5,9 +5,9 @@
method: @method,
url: @submit_path
) do |f|
- grid_layout("op-meeting-outcome-form", tag: :div) do |grid|
- grid.with_area(
- :notes,
+ flex_layout(tag: :div) do |flex|
+ flex.with_row(
+ mb: 2,
data: {
"test-selector": "meeting-outcome-input",
"meeting-outcome-form-target": "notesInput"
@@ -16,9 +16,9 @@
render(MeetingAgendaItem::Outcome::Notes.new(f))
end
- grid.with_area(:actions) do
- flex_layout do |flex|
- flex.with_column(mr: 2) do
+ flex.with_row do
+ flex_layout(justify_content: :flex_end) do |row|
+ row.with_column(mr: 2) do
render(
Primer::Beta::Button.new(
scheme: :secondary,
@@ -30,7 +30,7 @@
t("button_cancel")
end
end
- flex.with_column do
+ row.with_column do
render(MeetingAgendaItem::Outcome::Submit.new(f))
end
end
diff --git a/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.sass b/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.sass
deleted file mode 100644
index 4f7a4951010..00000000000
--- a/modules/meeting/app/components/meeting_agenda_items/outcomes/form_component.sass
+++ /dev/null
@@ -1,14 +0,0 @@
-@import 'helpers'
-
-.op-meeting-outcome-form
- display: grid
- grid-template-columns: auto
- grid-template-areas: "notes" "actions"
- grid-gap: 8px
-
- &--actions
- justify-self: end
-
- @media screen and (max-width: $breakpoint-md)
- grid-template-columns: 100px minmax(0, 100%)
- grid-template-areas: "notes notes" ". actions"