Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
klaustopher committed Jan 16, 2025
1 parent 27fab51 commit 7cd5622
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
) %>
<% end %>
<% d.with_footer(variant: :large) do %>
<% flex_layout(justify_content: :space_between, classes: 'time-entry-dialog-footer-buttons') do |flex| %>
<% flex_layout(justify_content: :flex_end, classes: 'time-entry-dialog-footer-buttons') do |flex| %>
<% if time_entry.persisted? %>
<% flex.with_column do %>
<%= render(
Expand All @@ -28,6 +28,7 @@
) { t("button_delete") } %>
<% end %>
<% end %>
<% flex.with_column(classes: "time-entry-button-push") %>
<% flex.with_column do %>
<%= render(
Primer::ButtonComponent.new(data: { "close-dialog-id": "time-entry-dialog" }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@
.time-entry-dialog-footer-buttons
width: 100%

.time-entry-button-push
margin-left: auto


.time-entry-dialog-form-spacing
row-gap: var(--stack-gap-normal)
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<%= component_wrapper do
primer_form_with(**form_options) do |form|
flex_layout do |body|
flex_layout(classes: "time-entry-dialog-form-spacing") do |body|
body.with_row do
render(TimeEntries::UserForm.new(form, visible: show_user))
end
Expand Down

0 comments on commit 7cd5622

Please sign in to comment.