Minimal lens layout
A lens frame with content-height sheets, folded corner buttons and search in the sidebar head.
О пакете
Этот текст ещё не переведён. Ниже английский оригинал.
Places the sidebar, page and settings in one lens frame. The sheets fit their content and scroll inside
when they reach the window insets. A folded sheet leaves a square button in its corner.
Cards can open over the right settings panel, in a centered modal, or next to the trigger.
The lens build includes the card host from card/ alongside the layout entry points.
The layout reads style tokens and uses the project's component library. The choice is layout:
on Design. Run shtuk run lenses build after changing it.
Действия 1
| Имя | Что делает | Файл | Когда |
|---|---|---|---|
| adopt | Select the minimal layout when the project has no layout | actions/adopt.ts | после установки после обновления |
Проверки запускает shtuk check, любое действие — shtuk run layout-minimal <имя>. Действия «после установки» запускаются сами, только если пакет из доверенного источника.
Страницы 5
Ложатся в проект по этим путям.
- /design/
- Minimal lens layout страница
- /design/layout-minimal/
- layout.css файл
- layout.js файл
- /design/layout-minimal/card/
- card.css файл
- card.js файл
Файлы пакета 6
Ложатся в .shtukbase/packages/layout-minimal/; отсюда запускаются действия.