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

Make error console sizing constant across base and bslib apps #3947

Merged
merged 6 commits into from
Jan 22, 2024

Conversation

nstrayer
Copy link
Contributor

Previously, when the error console appeared in an app using bslib it was comically large. This was due to the original console being designed with rem units for sizing and base shiny using 14px as the base font size. The bootstrap that bslib brings in has upped that size to 16px (in keeping with standards) and as a result, the error console got larger accordingly.
This PR updates this so that we use hard-coded font sizes instead. The main flaw is that the console does not correspond to zooms done by the user on the font size. However, we already break that a bit by hard-coding a font size on the body so it's a reasonable tradeoff.

@nstrayer
Copy link
Contributor Author

@cpsievert, I'd be curious if there's a bootstrap variable or approach that we could take here for making the sizing more responsive. I just hard-coded a font-size to get around the difference between old bootstrap and the newer bslib bootstrap versions.

nstrayer and others added 2 commits December 13, 2023 23:46
…s so console is consistantly sized across apps that set the body font size.
@jcheng5 jcheng5 force-pushed the error-console-font-size-update branch from 2d0ef4e to fd6dd31 Compare December 14, 2023 07:50
@jcheng5
Copy link
Member

jcheng5 commented Dec 14, 2023

I don't think of the error console as part of the UI, nor subject to the app author's preferences in terms of bslib or other CSS customizations--I think it's totally OK for it to be hard-coded to a px size.

@wch wch merged commit 370ba1f into main Jan 22, 2024
1 check passed
@wch wch deleted the error-console-font-size-update branch January 22, 2024 20:17
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 this pull request may close these issues.

3 participants