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 system argument instead of custom classes

bsatarnejad7430dfec26f9
diff --git a/modules/meeting/app/components/meetings/sidebar/participants_component.html.erb b/modules/meeting/app/components/meetings/sidebar/participants_component.html.erb
index 10df70997d3..d63449e4fcd 100644
--- a/modules/meeting/app/components/meetings/sidebar/participants_component.html.erb
+++ b/modules/meeting/app/components/meetings/sidebar/participants_component.html.erb
@@ -48,9 +48,9 @@
end
end
- list.with_row(mt: 1) do
+ list.with_row do
flex_layout do |flex|
- flex.with_row(classes: 'd-none', data: { 'meetings-sidebar-participants-target': "hiddenParticipants" }) do
+ flex.with_row(display: :none, data: { 'meetings-sidebar-participants-target': "hiddenParticipants" }) do
flex_layout do |hidden_user_list|
@meeting.invited_or_attended_participants.sort[MAX_SHOWN_PARTICIPANTS..].each do |participant|
hidden_user_list.with_row(mt: 1) do
@@ -59,7 +59,7 @@
end
end
end
- flex.with_row do
+ flex.with_row(mt: 1) do
render (Primer::Beta::Button.new(scheme: :invisible,
data: { 'meetings-sidebar-participants-target': "showHideButton" })) { I18n.t('label_meeting_show_hide_participants',
count: @meeting.invited_or_attended_participants.count - MAX_SHOWN_PARTICIPANTS) }
@@ -73,9 +73,9 @@
participants_container.with_row(display: [:block, :none, :none, :none, :none]) do
flex_layout do |flex|
if count == 0
- render(Primer::Beta::Text.new(color: :subtle)) { t("label_meeting_no_participants") }
+ render(Primer::Beta::Text.new) { t("label_meeting_no_participants") }
else
- flex.with_row(display: :none, data: { 'meetings-sidebar-participants-target': "hiddenMobileParticipants" }) do
+ flex.with_row(mb: 1, display: :none, data: { 'meetings-sidebar-participants-target': "hiddenMobileParticipants" }) do
flex_layout do |details|
@meeting.invited_or_attended_participants.sort.each do |participant|
details.with_row(mt: 1) do
@@ -86,10 +86,10 @@
end
flex.with_row do
flex.with_column do
- render(Primer::Beta::Octicon.new('people', color: :subtle, mr: 1))
+ render(Primer::Beta::Octicon.new('people', mr: 1))
end
flex.with_column do
- render(Primer::Beta::Text.new(color: :subtle, mr: 1)) { t('label_meeting_count_participants', count: @meeting.invited_or_attended_participants.count) }
+ render(Primer::Beta::Text.new(mr: 1)) { t('label_meeting_count_participants', count: @meeting.invited_or_attended_participants.count) }
end
flex.with_column(data: { 'meetings-sidebar-participants-target': "showHideMobileButton" }) do
render(Primer::Beta::Link.new(href: "#", target: "_blank")) do
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 8da7b29921b..d1d111d9fb4 100644
--- a/modules/meeting/app/components/meetings/sidebar/state_component.html.erb
+++ b/modules/meeting/app/components/meetings/sidebar/state_component.html.erb
@@ -24,7 +24,7 @@
end
if edit_enabled?
- open_state.with_row(mt: 3, classes: 'op-meeting-sidebar-state-edit') do
+ open_state.with_row(mt: [0, 3, 3, 3, 3]) do
form_for(@meeting, method: "put", url: change_state_meeting_path(@meeting),
data: { 'turbo-stream': true }) do |f|
flex_layout do |open_state_actions|
@@ -72,7 +72,7 @@
end
if edit_enabled?
- closed_state.with_row(mt: 3, classes: 'op-meeting-sidebar-state-edit') do
+ closed_state.with_row(mt: [0, 3, 3, 3, 3]) 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
index 53744633baf..341b9bb00b7 100644
--- a/modules/meeting/app/components/meetings/sidebar/state_component.sass
+++ b/modules/meeting/app/components/meetings/sidebar/state_component.sass
@@ -4,6 +4,4 @@
.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
+ align-items: center
\ No newline at end of file