-
Notifications
You must be signed in to change notification settings - Fork 4k
Print st.logo only on first page on the top #10171
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
Conversation
4c58fc7 to
e8147a8
Compare
94cd4c0 to
ee2ce89
Compare
lukasmasuch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be more specific to target the img of the logo only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I have updated the selector to use the stLogo test id. Does this sound good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of test-id, it would be better to use a proper class or we could directly link to StyledLogo here (preferred) like its done here:
| [`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox}`]: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great hint, I have updated it to [`& > ${StyledLogo}`]
968c68b to
2f420e9
Compare
## Describe your changes Closes streamlit#10165 Fixes the printing layout of `st.logo`. Right now it shows on the side (see streamlit#10165) but with this change it will show on the top left and only on the first page. This PR adds the Streamlit logo to the e2e version of the `hello_app` test so that the logo printing is tested. ## GitHub Issue Link (if applicable) ## Testing Plan - E2E Tests - Add `st.logo` to the `hello_app` e2e test to ensure that printing is working as expected --- **Contribution License Agreement** By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
Describe your changes
Closes #10165
Fixes the printing layout of
st.logo. Right now it shows on the side (see #10165) but then it will show on the top left and only on the first page.This PR adds the Streamlit logo to the e2e version of the
hello_apptest so that the logo printing is tested.Portrait:
Landscape:
GitHub Issue Link (if applicable)
Testing Plan
st.logoto thehello_appe2e test to ensure that printing is working as expectedContribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.