Skip to content

Commit c341622

Browse files
tvdeyenlassediercks
andcommitted
fix(elements-window): Always show by default
The elements window was offscreen by default and only visible on the edit page screen. Since automated browser testing tools (capybara with selenium) open the elements index view the elements window was always offscreen and the browser needed to scroll the window into view. With the recent change from absolute to fixed position this was not working anymore. Co-authored-by: Lasse Diercks <github@lassediercks.de> (cherry picked from commit ec563dd)
1 parent ca5e3f0 commit c341622

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/helpers/alchemy/admin/base_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def alchemy_body_class
252252
controller_name,
253253
action_name,
254254
content_for(:main_menu_style),
255-
content_for(:alchemy_body_class)
255+
content_for(:alchemy_body_class),
256+
"elements-window-visible"
256257
].compact
257258
end
258259

app/views/alchemy/admin/pages/edit.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<% content_for(:main_menu_style) { 'collapsed-menu' } %>
44

5-
<% content_for(:alchemy_body_class) { 'elements-window-visible' } %>
6-
75
<% content_for(:toolbar) do %>
86
<div class="toolbar_buttons">
97
<div class="toolbar_button">

0 commit comments

Comments
 (0)