Skip to content

Commit

Permalink
remove form margins on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonDunn committed Sep 18, 2024
1 parent e44c36b commit c4bdfa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ hqDefine("cloudcare/js/formplayer/app", [
FormplayerFrontend.trigger('setUnsavedFormNotInProgress');
$('#webforms').html("");
$('.menu-scrollable-container').removeClass("d-none");
$('#sidebar-and-content').removeClass('remove-padding-on-mobile');
$('#webforms-nav').html("");
$('#cloudcare-debugger').html("");
$('.atwho-container').remove();
Expand Down Expand Up @@ -306,6 +307,7 @@ hqDefine("cloudcare/js/formplayer/app", [
var sess = WebFormSession.WebFormSession(data);
sess.renderFormXml(data, $('#webforms'));
$('.menu-scrollable-container').addClass("d-none");
$('#sidebar-and-content').addClass('remove-padding-on-mobile');
});

FormplayerFrontend.on("start", function (model, options) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ body {
height: calc(100vh - #{$cloudcare-nav-height} - $breadcrumb-height-cloudcare);
}

#sidebar-and-content.remove-padding-on-mobile {
@include media-breakpoint-down(sm) {
margin: 0 !important;
}
}

#content-container {
background: transparent;
max-width: 1000px;
Expand Down

0 comments on commit c4bdfa3

Please sign in to comment.