Revert hidden shell cleanup (#19059)

This commit is contained in:
Ben Halpern 2023-02-06 03:43:11 -05:00 committed by GitHub
parent b2444d032d
commit d46b54330e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -11,6 +11,15 @@ body {
flex-direction: column;
min-height: 100vh;
&.hidden-shell {
padding-top: 0 !important;
.crayons-header,
.crayons-footer {
display: none;
}
}
&.user-tags-followed-0,
&.user-tags-followed-1,
&.user-tags-followed-2 {

View file

@ -22,6 +22,9 @@
if (navigator.userAgent === 'DEV-Native-ios') {
document.body.classList.add("dev-ios-native-body");
}
if (window.frameElement) { // Hide top bar and footer when loaded within iframe
document.body.classList.add("hidden-shell");
}
if (userString && userString.length > 0) {
const user = JSON.parse(userString)
const numTags = JSON.parse(user.followed_tags).length

View file

@ -76,7 +76,6 @@
</div>
<%= render "layouts/top_bar" %>
<div id="active-broadcast" class="broadcast-wrapper"></div>
<div id="message-notice"></div>
<% end %>
<% end %>
<% if Settings::General.payment_pointer.present? %>