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/,动作从那里运行。