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

shorten the meeting status part

bsatarnejad625b434e4214
diff --git a/modules/meeting/app/components/_index.sass b/modules/meeting/app/components/_index.sass
index 3cdcef54bec..2f17a54aef6 100644
--- a/modules/meeting/app/components/_index.sass
+++ b/modules/meeting/app/components/_index.sass
@@ -1,2 +1,3 @@
@import "./meeting_agenda_items/item_component/show_component.sass"
@import "./meeting_agenda_items/form_component.sass"
+@import "./meetings/sidebar/state_component.sass"
diff --git a/modules/meeting/app/components/meetings/sidebar/state_component.html.erb b/modules/meeting/app/components/meetings/sidebar/state_component.html.erb
index 74034d27288..8da7b29921b 100644
--- a/modules/meeting/app/components/meetings/sidebar/state_component.html.erb
+++ b/modules/meeting/app/components/meetings/sidebar/state_component.html.erb
@@ -2,7 +2,7 @@
component_wrapper do
case @meeting.state
when "open"
- flex_layout do |open_state|
+ flex_layout(classes: 'op-meeting-sidebar-state') do |open_state|
open_state.with_row do
render(Primer::Beta::State.new(title: "state", scheme: :open)) do
flex_layout do |open_state_label|
@@ -17,14 +17,14 @@
end
end
- open_state.with_row(mt: 3) do
+ open_state.with_row(mt: 3, classes:'hidden-for-mobile') do
render(Primer::Beta::Text.new(color: :subtle)) do
t("text_meeting_open_description")
end
end
if edit_enabled?
- open_state.with_row(mt: 3) do
+ open_state.with_row(mt: 3, classes: 'op-meeting-sidebar-state-edit') do
form_for(@meeting, method: "put", url: change_state_meeting_path(@meeting),
data: { 'turbo-stream': true }) do |f|
flex_layout do |open_state_actions|
@@ -50,7 +50,7 @@
end
end
when "closed"
- flex_layout do |closed_state|
+ flex_layout(classes: 'op-meeting-sidebar-state') do |closed_state|
closed_state.with_row do
render(Primer::Beta::State.new(title: "state", scheme: :default)) do
flex_layout do |closed_state_label|
@@ -66,13 +66,13 @@
end
closed_state.with_row(mt: 3) do
- render(Primer::Beta::Text.new(color: :subtle)) do
+ render(Primer::Beta::Text.new(color: :subtle, classes:'hidden-for-mobile')) do
t("text_meeting_closed_description")
end
end
if edit_enabled?
- closed_state.with_row(mt: 3) do
+ closed_state.with_row(mt: 3, classes: 'op-meeting-sidebar-state-edit') do
form_for(@meeting, method: "put", url: change_state_meeting_path(@meeting),
data: { 'turbo-stream': true }) do |f|
flex_layout do |closed_state_actions|
diff --git a/modules/meeting/app/components/meetings/sidebar/state_component.sass b/modules/meeting/app/components/meetings/sidebar/state_component.sass
new file mode 100644
index 00000000000..53744633baf
--- /dev/null
+++ b/modules/meeting/app/components/meetings/sidebar/state_component.sass
@@ -0,0 +1,9 @@
+@import 'helpers'
+
+@media screen and (max-width: $breakpoint-sm)
+ .op-meeting-sidebar-state
+ flex-direction: row !important
+ justify-content: space-between
+ align-items: center
+ &-edit
+ margin-top: 0 !important
\ No newline at end of file