Code Monkey home page Code Monkey logo

Comments (9)

zdavis avatar zdavis commented on June 14, 2024

Right col should not have the top padding.

from manifold.

naomiyaki avatar naomiyaki commented on June 14, 2024

Got it! Will fix when I get a spare moment.

from manifold.

naomiyaki avatar naomiyaki commented on June 14, 2024

Has this been fixed? I'm not able to reproduce on Chrome or Firefox on any window size.

screen shot 2017-05-04 at 3 02 39 pm

from manifold.

zdavis avatar zdavis commented on June 14, 2024

It has not, AFAIK. It was an issue as of yesterday or the day before. Add another page record in the rails console p = Page.create(title: "test page, slug: "test" and see if you can reproduce. I can't remember exactly what fields are required on Pages, so if it doesn't save, check p.errors or p.valid? and fix whatever is wrong.

from manifold.

naomiyaki avatar naomiyaki commented on June 14, 2024

I did a bunch of tests with @SMaxOwok and discovered what I believe is the root of the issue. If you take a look at the DOM in your example above, there will likely be an empty <li> tag with a link to a page that isn’t showing a nav_title. The subsequent <li> has padding on top of it because of sibling spacing.

I was able to reproduce this repeatedly by creating a new page in the console without a nav_title:
p = Page.create(title: "Test Page", slug: "test", creator_id: "e126836d-1b19-4ca9-b942-870b64e0a3cc"). This will ad a valid page, and an empty

  • to the footer menu, even though show_in_footer and nav_title are nil on the page. This won’t break the layout the first time, but if you add two pages this way (with unique names and slugs), you should see this bug.
    manifold scholarship 2017-05-04 17-15-28

    We can of course address this bug in the view by hiding pages without nav_titles and show_in_footer in the view, but I wanted to run it by you first before addressing it in the Javascript as Max voiced that some of these fields should be setup as required on the model themselves. That said, if there are going to be pages without nav_titles, I will address that in the view, too! Please advise @zdavis .

  • from manifold.

    zdavis avatar zdavis commented on June 14, 2024

    Ahh.. ideally, nav_title would be optional and title would be required. We'd show nav_title if set, and fallback to title if it's not set.

    from manifold.

    zdavis avatar zdavis commented on June 14, 2024

    Thanks for digging into this one!

    from manifold.

    zdavis avatar zdavis commented on June 14, 2024

    This fix is present in the PR according to Naomi. It's lacking any tests, however, and I've asked @SMaxOwok to add them. Accordingly, I'm re-assigning this issue to Max.

    from manifold.

    SMaxOwok avatar SMaxOwok commented on June 14, 2024

    Test added
    f95b85d

    from manifold.

    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.