diff --git a/app/javascript/controllers/dialog_controller.js b/app/javascript/controllers/dialog_controller.js index 4fbf25dc5..de1640825 100644 --- a/app/javascript/controllers/dialog_controller.js +++ b/app/javascript/controllers/dialog_controller.js @@ -5,7 +5,8 @@ import { limitHeightToViewport } from "helpers/sizing_helpers" export default class extends Controller { static targets = [ "dialog" ] static values = { - modal: { type: Boolean, default: false } + modal: { type: Boolean, default: false }, + sizing: { type: Boolean, default: true } } connect() { @@ -22,7 +23,7 @@ export default class extends Controller { orient(this.dialogTarget) } - limitHeightToViewport(this.dialogTarget, true) + limitHeightToViewport(this.dialogTarget, this.sizingValue) this.#loadLazyFrames() this.dialogTarget.setAttribute("aria-hidden", "false") diff --git a/app/views/notifications/_tray.html.erb b/app/views/notifications/_tray.html.erb index 3d01d594c..274d81622 100644 --- a/app/views/notifications/_tray.html.erb +++ b/app/views/notifications/_tray.html.erb @@ -1,6 +1,6 @@ <%= turbo_stream_from Current.user, :notifications %> -
+