How to use the semantic-ui-react.Responsive.onlyTablet 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 phmatray / openjam / src / components / layout / LayoutPresenter.js View on Github external
const playerHeight = 90;
  const containerHeight = `calc(100vh - ${topbarHeight}px - ${playerHeight}px)`;

  return (
    <div>
      
        
          
        
        
          
        
      

      
        

        
          {/*  */}</div>
github blahblahblah- / goodservice / app / javascript / packs / goodserviceApp / components / trainModalStatusOverviewPane.jsx View on Github external
if (i &lt; southDestinations.length - 1) {
        return result.concat([childEl, separator]);
      }
      return result.concat(childEl);
    }, []);
    const northDestinationsFormatted = northDestinations.reduce((result, child, i) =&gt; {
      const childEl = (<span>{child}</span>);
      const separator = (<span>, </span>);
      if (i &lt; northDestinations.length - 1) {
        return result.concat([childEl, separator]);
      }
      return result.concat(childEl);
    }, []);
    return(
      <div>
         Responsive.onlyTablet.maxWidth}&gt;
          
            
              
                <header color="{unScheduledDestinationsSouth.length">
                  {southDestinationsFormatted.length &gt; 0 &amp;&amp; "To "}
                  {(southDestinationsFormatted.length &amp;&amp; southDestinationsFormatted )|| "--"}
                </header>
              
              
                <header>
                  Lines
                </header>
              
              
                <header color="{unScheduledDestinationsNorth.length">
                  {northDestinationsFormatted.length &gt; 0 &amp;&amp; "To "}</header></div>
github blahblahblah- / theweekendest / src / app / mapbox.jsx View on Github external
if (this.map.getLayer(l)) {
          if (!includeTrains || !stationsData.some((station) =&gt; station.stops.has(t))) {
            this.map.setPaintProperty(l, 'line-opacity', 0.1);
          } else {
            this.map.setPaintProperty(l, 'line-opacity', 1);
          }
        }
      });
    });

    if (selectedStations.length === 1) {
      const stationData = stations[selectedStations[0]];
      let coords = [stationData.longitude, stationData.latitude];
      if (width &lt; Responsive.onlyTablet.minWidth) {
        coords = [coords[0] + 0.002, coords[1] + 0.004];
      } else if (width &lt;= Responsive.onlyTablet.maxWidth) {
        coords = [coords[0] - 0.005, coords[1] + 0.001];
      }
      this.map.easeTo({
        center: coords,
        zoom: 15,
        bearing: 29,
      });
    } else {
      const coordinatesArray = selectedStations.map((s) =&gt; [stations[s].longitude, stations[s].latitude]);
      const bounds = coordinatesArray.reduce((bounds, coord) =&gt; {
        return bounds.extend(coord);
      }, new mapboxgl.LngLatBounds(coordinatesArray[0], coordinatesArray[0]));

      this.map.fitBounds(bounds, {
        padding: {
          top: (width &gt;= Responsive.onlyTablet.minWidth) ? 20 : 140,
github blahblahblah- / goodservice / app / javascript / packs / goodserviceApp / components / trainModalDataPane.jsx View on Github external
<header size="medium">DELAYED TRAINS</header>
        

        
          
            
              
                
                  
                    Last 24 hrs
                    {this.props.stats.delays.last_day.count}
                  
                
                
                  
                    {this.props.stats.delays.last_day.avg_mins} mins
                    Avg Duration
                  
                  
                    {this.props.stats.delays.last_day.max_mins} mins
                    Longest Duration
                  
                
              
              
                
                  
                    Last week
                    {this.props.stats.delays.last_week.count}
github acikkaynak / acikkaynak-website / src / app / layouts / default / desktopContainer.tsx View on Github external
function DesktopContainer(props) {
    const [ fixed, setFixed ] = useState(false);

    return (
        
             setFixed(true)}
                onBottomPassedReverse={() =&gt; setFixed(false)}
            &gt;
                
                    <menu size="large">
                        
                            /
                            Haberler

                            
                                
                                    Başlarken
                                    Katkı Sağlamak
                                    Yeni Proje Başlatmak</menu>
github fulin426 / Color-Pic / client / src / components / DesktopContainer.js View on Github external
const getWidth = () => {
  const isSSR = typeof window === "undefined";

  return isSSR ? Responsive.onlyTablet.minWidth : window.innerWidth;
};
github blahblahblah- / theweekendest / src / app / stationDetails.jsx View on Github external
render() {
    const { stations, station, trains } = this.props;
    const { fav } = this.state;
    const title = `the weekendest beta - ${ station.name.replace(/ - /g, "–") }${ station.secondary_name ? ` (${station.secondary_name})` : ""} Station`;
    return (
      
        
          <title>{title}</title>
          
          
          
          
          
        
        
          <button title="Back">
            
          </button>
          <button title="Home">
            
          </button>
          {
            this.renderOverlayControls()
          }
          <button title="{">
            
          </button>
          { navigator.share &amp;&amp;
            <button title="Share" style="{{float:">
              
            </button>
github hez2010 / H-Judge / hjudge.WebHost / src / Frontend / src / components / layout / layout.tsx View on Github external
const DesktopContainer = (props: ContainerProps &amp; React.Props) =&gt; {
  const [fixed, setFixed] = React.useState(false);

  const hideFixedMenu = () =&gt; setFixed(false);
  const showFixedMenu = () =&gt; setFixed(true);
  const { children } = props;

  return (
    
github BanManagement / BanManager-WebUI / components / AdminNavBar.js View on Github external
return (
      
        
          
            
              {children
              }
          
        
        
          
          
            
              
                
                  
                
                
                  { displayNavTitle &amp;&amp;
                    <header>{title}</header>
                  }
                  {children}
github nearprotocol / near-wallet / src / components / responsive / ResponsiveContainer.js View on Github external
getWidth = () => {
        const isSSR = typeof window === 'undefined';
        return isSSR ? Responsive.onlyTablet.minWidth : window.innerWidth;
    }