Giter Site home page Giter Site logo

Comments (10)

billymcintosh avatar billymcintosh commented on May 2, 2024 2

This is the culprit in semantic-ui-css module node_modules/semantic-ui-css/semantic.css starting around line:34342

/* Left Visible */

.ui.visible.thin.left.sidebar ~ .fixed,
.ui.visible.thin.left.sidebar ~ .pusher {
  -webkit-transform: translate3d(150px, 0, 0);
  transform: translate3d(150px, 0, 0);
}

pusher and fixed classes don't like the translate3d because of the co-ordinate shift it causes.

I'll look into a fix.

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

Hi @TheDolo, hm, I didn't consider it like an issue, but you're right this needs some research for users that are interested in fixed Header. I think it's an "enhancement", not a "bug". Will try to figure out what's the problem.

from suicrux.

 avatar commented on May 2, 2024

Currently, fixed elements on desktop will not stay fixed and will scroll.

It's definitely a problem if the only fixed element allowed on the page is the sidebar!

Edit: if the page is too small for a scroll (no overflow), fixed elements work fine. So I'll insert a react custom scroll bar into a max height page for . now

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

Oh, I just misunderstood your sentence, ok, I'll investigate this case with fixed elements on the page (desktop), haven't seen this problem before.

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

@TheDolo you can use <Rail> and <Portal> components if you need to render something outside the main container. Probably, it can be used as a temporary fix until the better solution. Also, maybe in your case Portal/Rail is the best solution.

from suicrux.

billymcintosh avatar billymcintosh commented on May 2, 2024

Sorry, people. Not quite had the time yet. I suppose this is just a starter, really. As Metnew said - it'll work outside the main container but some styling tweaks with margins and padding will be required.

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

Page structure was improved + react-headroom was added. Now anything can be fixed/statis/relative/etc. Anything supported.

from suicrux.

kodemi avatar kodemi commented on May 2, 2024

@Metnew it still doesn't work. Header (react-headroom) scrolls on desktop.

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

Hm, ok, I'll take a look asap

from suicrux.

Metnew avatar Metnew commented on May 2, 2024

Not sure, but the possible root of the problem:

  • missing overflow-x in <PageLayout> component
  • transform:0(in SUI's .pushable) breaks something.

I had a project where this feature works as expected. I'll take a look more detailed later

from suicrux.

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.