diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 6298c0815..2e52b103c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -32,11 +32,11 @@ class UsersController < ApplicationController end def new - render layout: turbo_native_android? ? 'plain' : true + render layout: turbo_native_app? ? 'plain' : true end def edit - render layout: turbo_native_android? ? 'plain' : true + render layout: turbo_native_app? ? 'plain' : true end def create diff --git a/app/views/shared/_turbo_modal.html.erb b/app/views/shared/_turbo_modal.html.erb index dc4074fa8..6425ed165 100644 --- a/app/views/shared/_turbo_modal.html.erb +++ b/app/views/shared/_turbo_modal.html.erb @@ -1,4 +1,4 @@ -<% if turbo_native_ios? || (turbo_native_app? && !turbo_frame_request?) %> +<% if turbo_native_app? %> <% content_for(:native_modal, 'true') %> <% content_for(:native_title, local_assigns[:title]) if local_assigns[:title] %> diff --git a/app/views/shared/_turbo_modal_large.html.erb b/app/views/shared/_turbo_modal_large.html.erb index 1ae76d786..088ee63fd 100644 --- a/app/views/shared/_turbo_modal_large.html.erb +++ b/app/views/shared/_turbo_modal_large.html.erb @@ -1,4 +1,10 @@ -<% if turbo_frame_request? %> +<% if turbo_native_app? && turbo_frame_request? %> + + + <%= yield %> + + +<% elsif turbo_frame_request? %>
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index b8cde23ae..bc3914de5 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -1,4 +1,4 @@ -<%= form_for user, html: { class: "space-y-4 #{'px-4' if turbo_native_android?}" }, data: { turbo_frame: :_top } do |f| %> +<%= form_for user, html: { class: "space-y-4 #{'px-4' if turbo_native_app?}" }, data: { turbo_frame: :_top } do |f| %>