Skip to content

Commit

Permalink
make person overview and edit view responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Feb 27, 2024
1 parent dab4f5a commit 8f7bbcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions app/views/people/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%turbo-frame{id: "#{dom_id @person}"}
= form_with model: @person do |form|
%div.d-flex.justify-content-between
%div.d-flex.justify-content-between.flex-lg-row.flex-md-row.flex-sm-column.flex-column.overflow-scroll
%div.pe-5
%img.rounded-circle{src: "/api/people/#{@person.id}/picture", width: '141', height: '141'}
= form.file_field :picture
Expand Down Expand Up @@ -65,5 +65,6 @@
%div.border.border-dark-subtle.mt-1.p-2.rounded
- @person.language_skills.each do |language|
%div.mb-1= "#{language.language}: #{language.level} - #{language.certificate}"
= form.submit :Speichern, class: "btn btn-primary me-3"
= link_to "Abbrechen", person_path
%div.mt-3
= form.submit :Speichern, class: "btn btn-primary me-3"
= link_to "Abbrechen", person_path
2 changes: 1 addition & 1 deletion app/views/people/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
's Profile

%turbo-frame{id: "#{dom_id @person}"}
%div.d-flex.justify-content-between
%div.d-flex.justify-content-between.flex-lg-row.flex-md-row.flex-sm-column.flex-column.overflow-scroll
%div
%img.rounded-circle{src: "/api/people/#{@person.id}/picture", width: '141', height: '141'}
%div.mt-3= link_to "Bearbeiten", edit_person_path
Expand Down

0 comments on commit 8f7bbcf

Please sign in to comment.