We were using `overflow: scroll` as a workaround with a problem we had with the equalizer. But now we never need an extra vertical scroll bar, and we only need an extra horizontal scroll bar on small screens. Since the dashboard was using the class `admin-content` as well, we need to apply to the dashboard the same changes we've done in the admin section. I've extracted them into a mixin.
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>">
|
|
|
|
<head>
|
|
<%= render "layouts/common_head", default_title: "Admin" %>
|
|
<%= content_for :head %>
|
|
</head>
|
|
|
|
<body class="admin" data-watch-form-message="<%= I18n.t("layouts.admin.watch_form_message") %>">
|
|
<div class="off-canvas-wrapper">
|
|
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
|
|
<div class="off-canvas position-left" id="offCanvas" data-off-canvas>
|
|
|
|
<div class="show-for-small-only">
|
|
<%= side_menu %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="off-canvas-content" data-off-canvas-content>
|
|
<%= render "layouts/admin_header" %>
|
|
|
|
<div class="side-menu-and-admin-content no-margin-top">
|
|
<div id="side_menu" class="hide-for-small-only">
|
|
<%= side_menu %>
|
|
</div>
|
|
|
|
<div class="admin-content">
|
|
<div class="show-for-small-only">
|
|
<button type="button" class="button hollow expanded" data-toggle="offCanvas"><%= t("admin.menu.admin") %></button>
|
|
</div>
|
|
|
|
<%= render "layouts/flash" %>
|
|
<%= render "layouts/officing_booth" if controller.class.parent == Officing && session[:booth_id].present? %>
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|