Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some wacky align-horizontal buisness going on #5345

Closed
TryMyWagon opened this issue Dec 5, 2024 · 5 comments · Fixed by #5347
Closed

some wacky align-horizontal buisness going on #5345

TryMyWagon opened this issue Dec 5, 2024 · 5 comments · Fixed by #5347

Comments

@TryMyWagon
Copy link

TryMyWagon commented Dec 5, 2024

for some reason using "align" for me in css is affecting the class and not just the children of the class, which was leading to a funky interaction with "dock", i think its trying to align itself to the center of the docked position, eg

having "dock: right;" and "align-horizontal: center;" in a widgets css class would result in the widget ending up aligning itself relative to the center of the dock

in the likely event im a dumbass and missed some obvious important documentation please forgive me for taking up your time
im using the funky windows terminal with powershell in a venv with recent pip installs of rich and textual

video of the wacky stuff:
https://github.com/user-attachments/assets/584f5857-485c-4a7c-bf10-1d37dc56683d

the code causing said wack stuff:
test.zip

ps this library is amazing and "Rodrigo here for textualise" is a better teacher than all of my profs combined :D tysm!

# Textual Diagnostics


## Versions

| Name    | Value  |
|---------|--------|
| Textual | 0.88.1 |
| Rich    | 13.9.4 |

## Python

| Name           | Value                                                                                                            |
|----------------|------------------------------------------------------------------------------------------------------------------|
| Version        | 3.12.1                                                                                                           |
| Implementation | CPython                                                                                                          |
| Compiler       | MSC v.1937 64 bit (AMD64)                                                                                        |
| Executable     | C:\Users\Miles\Documents\!Programs(LOCAL)\!Projects\(python) TwitchOW2PredictionBot\src\.venv\Scripts\python.exe |

## Operating System

| Name    | Value      |
|---------|------------|
| System  | Windows    |
| Release | 10         |
| Version | 10.0.19045 |

## Terminal

| Name                 | Value     |
|----------------------|-----------|
| Terminal Application | *Unknown* | 
| TERM                 | *Not set* |
| COLORTERM            | *Not set* |
| FORCE_COLOR          | *Not set* |
| NO_COLOR             | *Not set* |

## Rich Console options

| Name           | Value                |
|----------------|----------------------|
| size           | width=120, height=30 |
| legacy_windows | False                |
| min_width      | 1                    |
| max_width      | 120                  |
| is_terminal    | True                 |
| encoding       | utf-8                |
| max_height     | 30                   |
| justify        | None                 |
| overflow       | None                 |
| no_wrap        | False                |
| highlight      | None                 |
| markup         | None                 |
| height         | None                 |
Copy link

github-actions bot commented Dec 5, 2024

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

@willmcgugan
Copy link
Collaborator

@rodrigogiraoserrao continues to receive praise for his teaching style...

Copy link

github-actions bot commented Dec 5, 2024

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

@willmcgugan
Copy link
Collaborator

Fixed in v0.89.1

@rodrigogiraoserrao
Copy link
Contributor

Thanks for the tag, @willmcgugan, and thanks for the kind words, @TryMyWagon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants