Skip to content
BearMinion

← Blog

BearMinion 1.25–1.27: spacing, site status, menu

The releases that didn't get their own post: top and bottom spacing on every section, a Site status screen for developers, a full-screen mobile menu and drag-and-drop uploads.

Languages and History got their own posts. These are the smaller things from 1.25 to 1.27, each one a reason to update. Start with:

npm install bearminion@latest
npx bearminion status

Section spacing (1.25)

Every section has Top spacing and Bottom spacing in the inspector's Layout group: None, Half or Full of its own padding, repainted as you click. Set both to None on two neighbouring sections of the same tone and they join into one band.

Pages you saved before don't move: a section without the setting keeps its full padding. The control shows once your section files render it. npx bearminion add <section> updates every section file you never changed, and status lists which ones need it.

Top spacing and Bottom spacing in the Layout group of the inspector, each set to None, Half or Full
Top and bottom spacing, per section, in the inspector's Layout group.

Site status (1.26)

Under Developer in the editor's navigation. One screen with:

  • the installed version, and whether npm has a newer one;
  • each installed section compared with the release, with the command that updates it;
  • the sections, content types, forms, hosted editor and, since 1.27, languages you could still add, each with its command to copy.

Mostly what npx bearminion status tells you in the terminal, where you already are when something looks out of date.

The Site status screen: the running bearminion version, a section that needs attention with its command, and more to add
Site status, under Developer in the editor's navigation.

Full-screen mobile menu (1.26)

A switch under Navigation → Header layout, off by default. On, the menu covers the screen, the header bar stays on top, the page stops scrolling behind it, and Escape closes it. The mobile menu also lost the lines between items, and the floating header's panel now opens just below the pill at its full width.

New sites have it. An existing site takes Header.astro, MobileMenu.astro and one line of site-definition.ts from the starter; from 1.27, add can update the header, mobile menu, footer and base layout for you if you never changed them.

The Header layout group in the editor's Navigation settings, with the Full-screen mobile menu switch turned on
The full-screen menu is a switch under Navigation → Header layout.

Drop images anywhere (1.27)

In Media, drop images anywhere on the screen to upload them. The drop tile is gone, and an empty library tells you how to add the first one.

The Media screen with the note: drag images anywhere here to upload them
Media: drop images anywhere on the screen.

Everything else

The full list, with the file-by-file notes for existing sites, is in the changelog on GitHub.

Wake the minion.

Run one command, answer three boring questions and watch it do the rest. Template copied, dependencies installed, first commit done.

Now it gets out of your way so you can actually work.

  1. npm create bearminion@latest
  2. Created My Site in my-site
  3. Installed dependencies
  4. →Next: cd my-site, npm run dev