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

Add overflow-x auto to codeblocks #2270

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

GottZ
Copy link
Contributor

@GottZ GottZ commented Mar 17, 2024

closes #2220
closes #2022
closes #844

Hello there.
this is the a step towards syntax highlighting in dataview blocks.
as it currently is implemented, it fixes the above linked issue.

this gem will adapt styles based on plugin settings in real time with high efficiency:
image
image

GottZ added a commit to GottZ/obsidian-dataview that referenced this pull request Mar 17, 2024
@GottZ GottZ force-pushed the add-codeblock-scrollx branch 2 times, most recently from 5bec3f4 to 0dce1de Compare March 17, 2024 16:45
@blacksmithgu
Copy link
Owner

I'm a bit behind here - is there a reason we can't fix this just with a plain CSS block and need this style provider logic?

GottZ added a commit to GottZ/obsidian-dataview that referenced this pull request Mar 20, 2024
@GottZ
Copy link
Contributor Author

GottZ commented Mar 20, 2024

@blacksmithgu it was basically for something else I was going to add down the line but you are right.. it's now a two line addition.
feel free to check the new fix out.

also in regards to:

is there a reason we can't fix this just with a plain CSS

as long as you allow people to dynamically rename dataviewjs to something else, no.

@GottZ GottZ changed the title Add codeblock scrollx and dynamic css Add overflow-x auto to codeblocks Mar 20, 2024
@blacksmithgu blacksmithgu merged commit cab92a6 into blacksmithgu:master Mar 22, 2024
3 checks passed
@GottZ GottZ deleted the add-codeblock-scrollx branch March 22, 2024 09:09
GottZ added a commit to GottZ/obsidian-dataview that referenced this pull request Mar 23, 2024
GottZ added a commit to GottZ/obsidian-dataview that referenced this pull request Apr 11, 2024
GottZ added a commit to GottZ/obsidian-dataview that referenced this pull request Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants