Skip to content

Commit

Permalink
FIX layout issues with userform in elemental context
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed May 24, 2024
1 parent 24ba62a commit 15b7932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/bundles/FieldEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jQuery.entwine('ss', ($) => {
let thisLevel = 0;
let depth = 0;
const $buttonrow = $('.uf-field-editor .ss-gridfield-buttonrow').addClass('sticky-buttons');
const navHeight = $('.cms-content-header.north').first().height()
const navHeight = $('.cms-content-header').first().height()
+ parseInt($('.sticky-buttons').css('padding-top'), 10);
const fieldEditor = $('.uf-field-editor');

Expand Down
7 changes: 4 additions & 3 deletions client/src/styles/userforms-cms.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.uf-field-editor {
padding-bottom: 0;
position: relative;

// Row styles
.grid-field__table {
Expand Down Expand Up @@ -123,8 +124,8 @@
}

.sticky-buttons {
position: fixed;
top: 73px;
position: sticky;
top: -1.7rem;
z-index: 1;
background: $body-bg;
border-bottom: 1px solid $border-color-light;
Expand Down Expand Up @@ -202,4 +203,4 @@
vertical-align: middle;
}
}
}
}

0 comments on commit 15b7932

Please sign in to comment.