How to use the semantic-ui-react.Sidebar.Pushable function in semantic-ui-react

To help you get started, we’ve selected a few semantic-ui-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Metnew / suicrux / src / common / containers / App / style.jsx View on Github external
import styled, {css} from 'styled-components'
import {Dimmer, Sidebar} from 'semantic-ui-react'

export const SidebarSemanticPushable = Sidebar.Pushable
export const SidebarSemanticPusherStyled = styled(Sidebar.Pusher)`
	height: 100%;
	-webkit-overflow-scrolling: touch;
	${({isloggedin, ismobile}) => {
		// using `ismobile` attr instead of `media` util is much smoother
		return (
			isloggedin &&
			!ismobile &&
			css`
				max-width: calc(100% - 150px);
				`
		)
	}};
`

export const PageLayout = styled.div`
github Raathigesh / atmo / packages / app / src / renderer / home.tsx View on Github external
} from "semantic-ui-react";
import Side from "./components/sidebar/Sidebar";
import ProjectPreference from "./components/preference/Preference";
import Endpoint from "./store/endpoint/Endpoint";
import IntroDialog from "./components/IntroDialog/IntroDialog";
import AppStore from "./store/AppStore";
import ViewStore from "./store/ViewStore";
import { ProjectStore } from "./store/ProjectStore";
import Preference from "./store/Preference";
import { Notification } from "./store/NotificationStore";
import Notify from "./components/Notification";
import RemoteDeploy from "./components/RemoteDeploy";
import BindShortcuts from "./Shortcuts";
import CloseConfirmation from "./components/CloseConfirmation";

const Pushable = styled(Sidebar.Pushable)`
  overflow-x: visible !important;
`;

const Container = styled.div`
  display: flex;
  flex-direction: column;
  height: 100%;
`;

const WideSidebar = styled(Sidebar)`
    width: 200px !important;
`;

interface IHome {
  state?: AppStore;
  view?: ViewStore;
github fulin426 / Color-Pic / client / src / components / MobileContainer.js View on Github external
render() {
    const { children } = this.props;
    const { sidebarOpened } = this.state;

    return (
      
        
          
            Color Pic
          
          
            Generate
github dkb868 / socialvault / src / Signin.jsx View on Github external
render() {
    const { children } = this.props;
    const { sidebarOpened } = this.state;
    const { handleSignIn } = this.props;
    return (
      
        
          
            Home
          

          Log in
github acikkaynak / acikkaynak-website / src / app / layouts / default / mobileContainer.tsx View on Github external
function MobileContainer(props) {
    const history = useHistory();

    const [ sidebarOpened, setSidebarOpened ] = useState(false);

    useEffect(() => history.listen(() => {
        setSidebarOpened(false);
    }));

    return (
        
             setSidebarOpened(false)} vertical visible={sidebarOpened}>
                Ana Sayfa
                Haberler
                
                    Eğitim
                    
                        Başlarken
                        Katkı Sağlamak
                        Yeni Proje Başlatmak
                        Kurumlar İçin
                        Rehber
                        Lisanslar
github hez2010 / H-Judge / hjudge.WebHost / src / Frontend / src / components / layout / layout.tsx View on Github external
const MobileContainer = (props: ContainerProps & React.Props) => {
  const [sidebarOpened, setSidebarOpened] = React.useState(false);

  const handleSidebarHide = () => setSidebarOpened(false);

  const handleToggle = () => setSidebarOpened(true);
  const { children } = props

  return (
    
      
        主页
        题库
        比赛
        小组
        状态
github eserozvataf / darty-react-app / src / app / layouts / default / mobileContainer.tsx View on Github external
function MobileContainer(props) {
    const [ sidebarOpened, setSidebarOpened ] = useState(false);

    return (
        
             setSidebarOpened(false)} vertical visible={sidebarOpened}>
                Home
                Dummy
            

            
                
                    
                        <menu size="large">
                             setSidebarOpened(true)}&gt;
                                
                            
                            </menu>