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

Update meeting agenda item layout

Mir Bhatia6666d963915c
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
index 8c7414ca303..afb322d7c23 100644
--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
@@ -10,21 +10,21 @@
grid.with_area(:content, tag: :span) do
if @meeting_agenda_item.visible_work_package?
flex_layout(align_items: :center) do |flex|
- flex.with_column(mr: 2, flex: 1, classes: 'ellipsis') do
- render(Primer::Beta::Link.new(href: work_package_path(@meeting_agenda_item.work_package), underline: false,
- test_selector: 'op-meeting-agenda-title',
- font_size: :normal, font_weight: :bold, target: "_blank")) do
- @meeting_agenda_item.work_package.subject
- end
- end
+ # flex.with_column(mr: 2, flex: 1, classes: 'ellipsis') do
+ # render(Primer::Beta::Link.new(href: work_package_path(@meeting_agenda_item.work_package), underline: false,
+ # test_selector: 'op-meeting-agenda-title',
+ # font_size: :normal, font_weight: :bold, target: "_blank")) do
+ # @meeting_agenda_item.work_package.subject
+ # end
+ # end
- flex.with_column(mr: 2, classes: 'hidden-for-mobile') do
+ flex.with_column(mr: 2) do
render(Primer::Beta::Text.new(font_size: :small, color: :subtle)) do
- "#{@meeting_agenda_item.work_package.type.name} ##{@meeting_agenda_item.work_package.id}"
+ "##{@meeting_agenda_item.work_package.id} #{@meeting_agenda_item.work_package.type.name}"
end
end
- flex.with_column(mr: 2, classes: 'hidden-for-mobile') do
+ flex.with_column(mr: 2) do
render(Primer::Beta::Label.new(font_weight: :bold)) do
@meeting_agenda_item.work_package.status.name
end
@@ -45,8 +45,19 @@
end
end
+ grid.with_area(:title, tag: :div) do
+ if @meeting_agenda_item.visible_work_package?
+ render(Primer::Beta::Link.new(href: work_package_path(@meeting_agenda_item.work_package), underline: false,
+ test_selector: 'op-meeting-agenda-title',
+ font_size: :normal, font_weight: :bold, target: "_blank")) do
+ @meeting_agenda_item.work_package.subject
+ end
+ end
+ end
+
+
if @meeting_agenda_item.duration_in_minutes.present? && @meeting_agenda_item.duration_in_minutes > 0
- grid.with_area(:duration, Primer::Beta::Text, color: duration_color_scheme, mr: 1, font_size: :small) do
+ grid.with_area(:duration, Primer::Beta::Text, color: duration_color_scheme, mr: 2, font_size: :small) do
I18n.t('datetime.distance_in_words.x_minutes_abbreviated', count: @meeting_agenda_item.duration_in_minutes)
end
end
@@ -61,6 +72,8 @@
end
end
+
+
grid.with_area(:actions, tag: :div, justify_self: :end, classes: "hide-when-print") do
if edit_enabled?
render(Primer::Alpha::ActionMenu.new) do |menu|
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.sass
index 7fe47c849a6..254c6bb2483 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
@@ -5,12 +5,13 @@ $meeting-agenda-item--presenter-width: 300px
.op-meeting-agenda-item
display: grid
grid-template-columns: 20px auto 1fr fit-content($meeting-agenda-item--presenter-width) fit-content(40px)
- grid-template-areas: "drag-handle content duration presenter actions" ".notes notes notes notes"
+ grid-template-areas: "drag-handle content duration presenter actions" ". title title title title" ". notes notes notes notes"
&--drag-handle,
&--duration,
&--content,
- &--presenter
+ &--presenter,
+ &--title
align-self: center
&--actions
@@ -22,13 +23,18 @@ $meeting-agenda-item--presenter-width: 300px
&--duration
white-space: nowrap
+ justify-self: end
+
+ &--title
+ overflow-wrap: anywhere
+ margin-bottom: 0
&--content
@include text-shortener
@media screen and (max-width: $breakpoint-lg)
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"
+ grid-template-areas: "drag-handle content content content actions" ". duration . presenter presenter" ". title title title title" ". notes notes notes notes"
&--author
justify-self: stretch