Query results and other widgets in SilverBullet show a row of buttons (refresh, copy, bake and edit). On a small phone screen they get in the way of the results. This style hides them on an iPhone.

Setup

  1. Open your STYLES page, or any page you keep styles on.
  2. Add a space-style code block (three backticks followed by space-style) and paste this inside it:
/* hide the widget button bar on iPhone only */
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (max-width: 600px) {
    html body #sb-main .cm-editor .sb-markdown-widget .button-bar,
    html body #sb-main .cm-editor .sb-lua-directive-block .button-bar,
    html body #sb-main .cm-editor .sb-lua-directive-inline .button-bar,
    html body #sb-main .cm-editor .sb-lua-top-widget .button-bar,
    html body #sb-main .cm-editor .sb-lua-view .button-bar {
      display: none !important;
    }
  }
}
  1. Refresh the page on your phone.

Notes

  • The @supports line limits it to Apple's mobile browsers. To hide the buttons on every phone, remove that line and its closing brace.
  • The 600px sets the largest screen it applies to. Raise it to include larger screens.
  • The buttons still show on desktops and tablets, so you can refresh or edit a query there.