Skip to content

Conversation

@rodrigogiraoserrao
Copy link
Contributor

This will close #1864.

@willmcgugan
Copy link
Member

@rodrigogiraoserrao would you mind adding a screenshot or two of a widget with title / subtitle.

Copy link
Member

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good first pass. A few requests. Might be worth going over this tomorrow.

@rodrigogiraoserrao
Copy link
Contributor Author

_borders_example

@rodrigogiraoserrao
Copy link
Contributor Author

I think this still needs a couple of tests for edge cases (narrow spaces, flush against the edge, etc).

New demo:

Untitled

@rodrigogiraoserrao
Copy link
Contributor Author

@willmcgugan because I was catenating lists left, right, and centre, I reworked the two methods in _border.py to return iterables (to yield pieces one by one).
Let me know if this is not ok.

@rodrigogiraoserrao
Copy link
Contributor Author

Untitled

Run this demo with textual run docs/examples/styles/border_sub_title_align_all.py

Copy link
Member

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. A few requests.

@willmcgugan willmcgugan merged commit 2a810f8 into main Mar 22, 2023
@willmcgugan willmcgugan deleted the border-title branch March 22, 2023 11:07
rodrigogiraoserrao added a commit that referenced this pull request Mar 22, 2023
Related issues: #2108
Related PRs: #2064
rodrigogiraoserrao added a commit that referenced this pull request Mar 22, 2023
Related issues: #2108
Related PRs: #2110, #2064
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add title to CSS borders

3 participants