mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 19:37:54 +03:00
Refactor Margin for fine grained control (#2727)
This commit is contained in:
parent
ce85b9716d
commit
8e8367eea6
8 changed files with 75 additions and 43 deletions
|
@ -323,10 +323,7 @@ impl Component for Markdown {
|
|||
.wrap(Wrap { trim: false })
|
||||
.scroll((cx.scroll.unwrap_or_default() as u16, 0));
|
||||
|
||||
let margin = Margin {
|
||||
vertical: 1,
|
||||
horizontal: 1,
|
||||
};
|
||||
let margin = Margin::all(1);
|
||||
par.render(area.inner(&margin), surface);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue