Giter Site home page Giter Site logo

Comments (6)

faucetlol avatar faucetlol commented on July 17, 2024

Oh, it's intentionally hidden - I guess because removing that line it ends up with two menus if re621 is installed.

image

Considering the menu button doesn't even seem to do anything when RE621 is installed, I wonder if it should be removing that button itself, unless there's some clever CSS solution you can come up with.

from esix-cafe.

mandorinn avatar mandorinn commented on July 17, 2024

Woke up a few minutes agoooo, didn't sleep 12 hours this time lmaooo
I totally didn't think about what'd happen if re621 wasn't installed on mobile!
Apparently re621 doesn't add data-enhancements to the body anymore, but it does add a few others such as data-sticky.
So, assuming that attribute is always added when re621 is installed, fixing the nav should be as easy as changing body.resp #maintoggle to body[data-sticky] #maintoggle, hopefully this fix works for you as wellllll!

from esix-cafe.

faucetlol avatar faucetlol commented on July 17, 2024

Works perfectly!!

from esix-cafe.

mandorinn avatar mandorinn commented on July 17, 2024

Sickkkkk! Hopefully that attribute doesn't get changed in the future like data-enhancements, tho it'd probably be an easy fix in the future if it doessss lollll

from esix-cafe.

faucetlol avatar faucetlol commented on July 17, 2024

The hiding it actually only seems to work on the posts page, other pages still have it :(

image

Having an extra menu button is still better than users without RE621 getting no menu button at all though... I'm about to make a PR to just incorporate it into RE621 itself because there's really no need to ever have that button there when it has its own menu.

from esix-cafe.

bitWolfy avatar bitWolfy commented on July 17, 2024

Woke up a few minutes agoooo, didn't sleep 12 hours this time lmaooo I totally didn't think about what'd happen if re621 wasn't installed on mobile! Apparently re621 doesn't add data-enhancements to the body anymore, but it does add a few others such as data-sticky. So, assuming that attribute is always added when re621 is installed, fixing the nav should be as easy as changing body.resp #maintoggle to body[data-sticky] #maintoggle, hopefully this fix works for you as wellllll!

@mandorinn Both data-enhancements and data-sticky are used to turn specific portions of RE621 on and off.
The former toggles the profile page redesign, the latter – sticky search box.
Both are still being used, but neither can be relied on to detect whether RE621 is running or not.

I've added a new re621 attribute to body in 1.5.41 that is always set to true.

from esix-cafe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.