Skip to content

Commit

Permalink
Merge branch 'release/14.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
openprojectci committed Apr 18, 2024
2 parents 2e772ac + ad1a644 commit 4bbbfa2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
Expand Up @@ -18,9 +18,10 @@
<% end %>
<% modal_body.with_row(mt: 3) do |_actions_row| %>
<%= flex_layout(mt: 3, justify_content: :flex_end) do |action_buttons| %>
<%= flex_layout(justify_content: :flex_end) do |action_buttons| %>
<%= action_buttons.with_column do %>
<%= f.submit t(:button_save), class: "btn btn-primary" %>
<%= render(Primer::Beta::Button.new(scheme: :primary,
type: :submit)) { t(:button_save) } %>
<% end %>
<% end %>
<% end %>
Expand Down
Expand Up @@ -24,9 +24,10 @@
<% end %>
<% modal_body.with_row(mt: 3) do |_actions_row| %>
<%= flex_layout(mt: 3, justify_content: :flex_end) do |action_buttons| %>
<%= flex_layout(justify_content: :flex_end) do |action_buttons| %>
<%= action_buttons.with_column do %>
<%= f.submit t(:button_save), class: "btn btn-primary" %>
<%= render(Primer::Beta::Button.new(scheme: :primary,
type: :submit)) { t(:button_save) } %>
<% end %>
<% end %>
<% end %>
Expand Down
Expand Up @@ -16,25 +16,25 @@

<ng-container slot="body">
<div
class="spot-modal--header"
class="spot-drop-modal--header"
>
<div
id="spotModalTitle"
class="spot-modal--header-title"
class="spot-drop-modal--header-title"
[textContent]="this.text.title">
</div>

<button
class="button button_no-margin -transparent spot-modal--header-close-button"
class="button button_no-margin -transparent spot-drop-modal--header-close-button"
[attr.aria-label]="text.button_close"
(click)="closeMe()"
data-test-selector="op-progress-modal--close-icon"
>
<svg x-icon size="small" class="spot-modal--header-close-button-icon"></svg>
<svg x-icon size="small" class="spot-drop-modal--header-close-button-icon"></svg>
</button>
</div>

<div class="spot-modal--body spot-container">
<div class="spot-drop-modal--content">
<turbo-frame
#frameElement
id="work_package_progress_modal"
Expand Down
@@ -1,5 +1,5 @@
@import "../../global_styles/openproject/variables"

@media screen and (min-width: $breakpoint-lg)
.spot-modal--body
.spot-drop-modal--content
width: 500px
16 changes: 16 additions & 0 deletions frontend/src/app/spot/styles/sass/components/drop-modal.sass
Expand Up @@ -67,6 +67,22 @@
@media #{$spot-mq-drop-modal-in-context}
display: none

&--header
@extend .spot-modal--header
font-size: var(--body-font-size) !important

&--header-title
@extend .spot-modal--header-title

&--header-close-button
@extend .spot-modal--header-close-button

&--header-close-button-icon
@extend .spot-modal--header-close-button-icon

&--content
margin: $spot-spacing-1

&--close-button
display: block
position: fixed
Expand Down

0 comments on commit 4bbbfa2

Please sign in to comment.