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
Change breakpoint to `md` for the meetings layout to avoid overflowing agenda items
Henriette Darge0541b763d193
diff --git a/modules/meeting/app/components/_index.sass b/modules/meeting/app/components/_index.sassindex 7655e791146..c3880088011 100644--- a/modules/meeting/app/components/_index.sass+++ b/modules/meeting/app/components/_index.sass@@ -1,5 +1,4 @@@import "./meeting_agenda_items/item_component/show_component.sass"@import "./meeting_agenda_items/form_component.sass"@import "./meetings/sidebar/state_component.sass"-@import "./meetings/sidebar/participants_component.sass"@import "./meetings/sidebar/details_component.sass"diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.sass b/modules/meeting/app/components/meeting_agenda_items/form_component.sassindex f099afaafb1..326dea436b6 100644--- a/modules/meeting/app/components/meeting_agenda_items/form_component.sass+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.sass@@ -2,13 +2,17 @@.op-meeting-agenda-item-formdisplay: grid- grid-template-columns: 2fr 1fr 140px+ grid-template-columns: 2fr 1fr 100pxgrid-template-areas: "title presenter duration" "notes notes notes" "add_note actions actions"grid-gap: 8px&--actionsjustify-self: end- @media screen and (max-width: $breakpoint-sm)- grid-template-columns: 1fr auto+ &--title,+ &--notes+ overflow: hidden++ @media screen and (max-width: $breakpoint-md)+ grid-template-columns: 100px autogrid-template-areas: "title title" "duration presenter" "notes notes" "add_note actions"diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sassindex ce0916d3850..7fe47c849a6 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass@@ -16,7 +16,7 @@ $meeting-agenda-item--presenter-width: 300px&--actionsjustify-self: end- &--responsbile+ &--presentermax-width: $meeting-agenda-item--presenter-widthjustify-self: end@@ -27,8 +27,8 @@ $meeting-agenda-item--presenter-width: 300px@include text-shortener@media screen and (max-width: $breakpoint-lg)- grid-template-columns: 20px auto 1fr 50px- grid-template-areas: "drag-handle content content actions" ".presenter presenter duration" ".notes notes notes"+ grid-template-columns: 20px auto 1fr calc($meeting-agenda-item--presenter-width - 50px) 50px+ grid-template-areas: "drag-handle content content content actions" ". duration . presenter presenter" ". notes notes notes notes"&--authorjustify-self: stretchdiff --git a/modules/meeting/app/components/meetings/show_component.html.erb b/modules/meeting/app/components/meetings/show_component.html.erbindex cd631d8add8..2cf6000430b 100644--- a/modules/meeting/app/components/meetings/show_component.html.erb+++ b/modules/meeting/app/components/meetings/show_component.html.erb@@ -12,7 +12,7 @@endshow_page.with_row do- render(Primer::Alpha::Layout.new(stacking_breakpoint: :sm)) do |content|+ render(Primer::Alpha::Layout.new(stacking_breakpoint: :md)) do |content|content.with_main doflex_layout do |agenda|agenda.with_row do@@ -23,7 +23,7 @@render(MeetingAgendaItems::NewButtonComponent.new(meeting: @meeting))end- agenda.with_row(mt: 3, classes: 'hidden-for-desktop') do+ agenda.with_row(mt: 3, display: [:block, nil, :none]) doresource = ::API::V3::Meetings::MeetingRepresenter.new(@meeting, current_user: User.current, embed_links: false)concat render(Primer::Beta::Heading.new(tag: :h4)) { I18n.t(:label_attachment_plural) }concat helpers.list_attachments(resource,diff --git a/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erb b/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erbindex 4f61e9073a5..e133e34208a 100644--- a/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erb+++ b/modules/meeting/app/components/meetings/sidebar/attachments_component.html.erb@@ -1,5 +1,5 @@<%=- flex_layout(classes: 'hidden-for-mobile') do |attachments_container|+ flex_layout do |attachments_container|attachments_container.with_row dorender(Primer::Beta::Heading.new(tag: :h4)) { I18n.t(:label_attachment_plural) }enddiff --git a/modules/meeting/app/components/meetings/sidebar/details_component.html.erb b/modules/meeting/app/components/meetings/sidebar/details_component.html.erbindex 8bcb54ec4b2..a3fcbbcc3b4 100644--- a/modules/meeting/app/components/meetings/sidebar/details_component.html.erb+++ b/modules/meeting/app/components/meetings/sidebar/details_component.html.erb@@ -86,7 +86,7 @@endend- details.with_row(mt: 2, classes: 'meeting-detail-participants') do+ details.with_row(mt: 2, classes: 'meeting-detail-participants', display: [nil, nil, :none]) dorender_meeting_attribute_row(:people) doflex_layout do |duration|duration.with_column(mr: 2) dodiff --git a/modules/meeting/app/components/meetings/sidebar/details_component.sass b/modules/meeting/app/components/meetings/sidebar/details_component.sassindex b1df95165ae..a15646b57e3 100644--- a/modules/meeting/app/components/meetings/sidebar/details_component.sass+++ b/modules/meeting/app/components/meetings/sidebar/details_component.sass@@ -1,11 +1,6 @@.meeting-detail-participants- visibility: collapse// The modal is rendered inside the mobile participant list element and it can be// triggered from both mobile and desktop views. The mobile participant list is hidden// when the desktop view is active, but the modal inside it should still be visible..Overlay-backdrop--centervisibility: visible--@media screen and (max-width: $breakpoint-sm)- .meeting-detail-participants- visibility: visiblediff --git a/modules/meeting/app/components/meetings/sidebar/participants_component.sass b/modules/meeting/app/components/meetings/sidebar/participants_component.sassdeleted file mode 100644index f12dd12b4c2..00000000000--- a/modules/meeting/app/components/meetings/sidebar/participants_component.sass+++ /dev/null@@ -1,6 +0,0 @@-@import 'helpers'--@media screen and (max-width: $breakpoint-sm)- #meetings-sidebar-component- .BorderGrid-row:nth-child(3)- display: nonediff --git a/modules/meeting/app/components/meetings/sidebar/state_component.html.erb b/modules/meeting/app/components/meetings/sidebar/state_component.html.erbindex d1d111d9fb4..8ddec74897c 100644--- a/modules/meeting/app/components/meetings/sidebar/state_component.html.erb+++ b/modules/meeting/app/components/meetings/sidebar/state_component.html.erb@@ -17,7 +17,7 @@endend- open_state.with_row(mt: 3, classes:'hidden-for-mobile') do+ open_state.with_row(mt: 3, display: [:none, nil, :block]) dorender(Primer::Beta::Text.new(color: :subtle)) dot("text_meeting_open_description")end@@ -66,7 +66,7 @@endclosed_state.with_row(mt: 3) do- render(Primer::Beta::Text.new(color: :subtle, classes:'hidden-for-mobile')) do+ render(Primer::Beta::Text.new(color: :subtle, display: [:none, nil, :block])) dot("text_meeting_closed_description")endenddiff --git a/modules/meeting/app/components/meetings/sidebar/state_component.sass b/modules/meeting/app/components/meetings/sidebar/state_component.sassindex bc7fe8fa417..eb44fc1071b 100644--- a/modules/meeting/app/components/meetings/sidebar/state_component.sass+++ b/modules/meeting/app/components/meetings/sidebar/state_component.sass@@ -1,6 +1,6 @@@import 'helpers'-@media screen and (max-width: $breakpoint-sm)+@media screen and (max-width: $breakpoint-md).op-meeting-sidebar-stateflex-direction: row !importantjustify-content: space-betweendiff --git a/modules/meeting/app/components/meetings/sidebar_component.html.erb b/modules/meeting/app/components/meetings/sidebar_component.html.erbindex 10a832940f0..e2ebe6d08e3 100644--- a/modules/meeting/app/components/meetings/sidebar_component.html.erb+++ b/modules/meeting/app/components/meetings/sidebar_component.html.erb@@ -3,8 +3,8 @@render(Primer::OpenProject::BorderGrid.new) do |border_grid|border_grid.with_row { render(Meetings::Sidebar::DetailsComponent.new(meeting: @meeting)) }border_grid.with_row { render(Meetings::Sidebar::StateComponent.new(meeting: @meeting)) }- border_grid.with_row { render(Meetings::Sidebar::ParticipantsComponent.new(meeting: @meeting)) }- border_grid.with_row { render(Meetings::Sidebar::AttachmentsComponent.new(meeting: @meeting)) }+ border_grid.with_row(display: [:none, nil, :"table_cell"]) { render(Meetings::Sidebar::ParticipantsComponent.new(meeting: @meeting)) }+ border_grid.with_row(display: [:none, nil, :"table_cell"]) { render(Meetings::Sidebar::AttachmentsComponent.new(meeting: @meeting)) }endend%>