mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #72] Support padding of containers #54
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mum4k on GitHub (Jan 15, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/72
So widgets can have some space around themselves.
Probably a separate padding for top, bottom, left, right. These can be implemented as new container options:
https://github.com/mum4k/termdash/blob/master/container/options.go
The size of the padding should be supplied in relative terms, so that this behaves well with terminal resize. I.e. percentage of the containers width / height.
@nilathedragon commented on GitHub (Jan 25, 2019):
I've started experimenting with this.
Currently implemented are 4 new options:
On the testing part I might need some help. Currently not tested (Except for human testing)
Please see pull request #91 for code reviewing
@nilathedragon commented on GitHub (Jan 25, 2019):
Alright, I added a test which tests all 4 padding methods
@mum4k commented on GitHub (Jan 26, 2019):
Great, will respond on the PR shortly.
What do you think - should we also implement a margin for containers (i.e. a cleared area on the outside of the container)? If you think that's useful, we can file a separate issue and get to that separately / at a later time.
@nilathedragon commented on GitHub (Jan 26, 2019):
I think a margin sounds good. Will look at the coding part asap.
@mum4k commented on GitHub (Jan 26, 2019):
Thank you, I have filed #93 to track the margin feature. If you will be looking at that too, please send it in a separate PR.