There is indeed no simple flag in TiddlyWiki for mobile vs. desktop because we’ve long passed the point where the underlying distinction is simple. Instead, as Tones points out, designers use CSS to craft interfaces that gracefully respond to different screen sizes and JavaScript to make behaviours that work differently across platforms eg for touch vs. mouse. Even there, there’s a lot of confusion: many devices support both touch and mouse, and all of them make some attempt to emulate between the two.
In your case, it sounds like the simplest thing might be to wrap your custom view template in a class, and then use CSS to hide that class if the screen size is larger than a particular cut-off that works for your devices. Best wishes Jeremy > On 14 Dec 2020, at 22:00, TW Tones <anthony.mus...@gmail.com> wrote: > > Si, > > There are tiddlywiki themes etc for mobile use. Whilst the screen size can be > determined and I believe start-up actions can be triggered to respond to such > screen sizes I believe the main approach to mobile is using CSS and its > features to respond to screen sizes. CSS allows you to hide the display of > some elements and display others. Where screen parameters and start up > actions can perhaps implement other settings. > > In 5.1.23 we now have the ability to switch layouts easily so perhaps use > this feature to build a mobile layout? > > Basically quite a few people have being making use of screen sizes and CSS > for some time. > > Regards > Tones > > On Tuesday, 15 December 2020 at 07:52:30 UTC+11 si wrote: > Ahh ok thank you Eric, that's good to know. > > On Monday, 14 December 2020 at 20:44:36 UTC Eric Shulman wrote: > On Monday, December 14, 2020 at 12:28:46 PM UTC-8 si wrote: > various different types of browser/platform, all with the prefix > "$:/info/browser/is/". > > These are added by the "browser-sniff" plugin, which is installed on > tiddlywiki.com <http://tiddlywiki.com/>, but is NOT installed in the > empty.html > > -e > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tiddlywiki+unsubscr...@googlegroups.com > <mailto:tiddlywiki+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/28fcbc05-1f19-419b-bf53-c0de492efad0n%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/28fcbc05-1f19-419b-bf53-c0de492efad0n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7AD2A982-4BFA-42D0-BA42-279203836995%40gmail.com.