1

Same question w/o an answer I like.... and since the following allows me to show the contents of Container only on desktopy env.

    <Container Display="Display.None.Block.OnFullHD">
        <AppHelpMenu />
    </Container>

How do I use that to show a Container only on mobile?

    <Container Display="Display.None.Block.Mobile">
        <AppHelpMenu />
    </Container>

That doesn't work :(

kenny
  • 21,522
  • 8
  • 49
  • 87

2 Answers2

2

Should be

<Container Display="Display.None.OnFullHD.None.OnTablet.Block.OnMobile">
    <NavHelp />
</Container>

First, you define how to show it (None), and then where to show it (OnMobile).

kenny
  • 21,522
  • 8
  • 49
  • 87
Mladen Macanović
  • 1,099
  • 7
  • 17
  • I edited your answer with what worked for me, but the description of HOW it works is perfect. Thanks! – kenny Mar 04 '21 at 12:40
0

The following CSS works good enough

@media (min-width: 641px) {
    .show-mobile-only {
        /* don't show on mobile */
        display: none;
    }
<div class="show-mobile-only" >
    <NavHelp />
</div>
kenny
  • 21,522
  • 8
  • 49
  • 87