Skip to content

Commit

Permalink
chore: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 17, 2023
1 parent 615ac48 commit e0f0f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usage/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ Copy the preset [`manager` component](https://github.com/sxyazi/yazi/blob/main/p

-- Parent
- Folder:render(chunks[1]:padding(ui.Padding.x(1)), { kind = Folder.PARENT }),
+ Folder:render(chunks[1]:padding(ui.Padding(1, 1, 1, 1)), { kind = Folder.PARENT }),
+ Folder:render(chunks[1]:padding(ui.Padding.xy(1)), { kind = Folder.PARENT }),
-- Current
- Folder:render(chunks[2], { kind = Folder.CURRENT }),
+ Folder:render(chunks[2]:padding(ui.Padding.y(1)), { kind = Folder.CURRENT }),
-- Preview
- ui.Base(chunks[3]:padding(ui.Padding.x(1)), ui.Base.PREVIEW),
+ ui.Base(chunks[3]:padding(ui.Padding(1, 1, 1, 1)), ui.Base.PREVIEW),
+ ui.Base(chunks[3]:padding(ui.Padding.xy(1)), ui.Base.PREVIEW),
}
end
```
Expand Down

0 comments on commit e0f0f08

Please sign in to comment.