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

Table wrapper for markdown tables #114

Merged
merged 4 commits into from
Apr 18, 2023
Merged

Conversation

uroybd
Copy link
Contributor

@uroybd uroybd commented Mar 26, 2023

In some themes (at least in the Minimal theme and/or in all themes), markdown tables are not scrollable horizontally in mobiles.

That can be fixed by an overflow-y: auto on the cm-s-obsidian class but that breaks the styling. I've googled it a bit and found that in such situations tables should be wrapped in another container, and that container should have overflow-y: auto.

It is true that our current setup allows us to implement this without touching the core template, but I thought it was a problem most will face now or then and we can ship the solution with the template.

@oleeskild
Copy link
Owner

Great idea, I've changed the "overflow-x: scroll" to use "auto" instead so that it only appears when actually oveflowing.

@oleeskild oleeskild merged commit 23d2d7c into oleeskild:main Apr 18, 2023
oleeskild added a commit that referenced this pull request Apr 18, 2023
* Move vercel.json to filesToAdd (#115)

* vercel.json to filesToAdd

* Netlify config doesn't need to be overwritten on every update

---------

Co-authored-by: Ole Eskild Steensen <oleeskild@users.noreply.github.com>

* Table wrapper for markdown tables (#114)

* table wrapper for markdown tables

* minimal formatting

* minimal formatting

* Only show scroll when neccessary

---------

Co-authored-by: Ole Eskild Steensen <oleeskild@users.noreply.github.com>

* Image optimization (#116)

* image optimizations

* added cache to gitignore

* fault tolerant img generation

* crash fix

---------

Co-authored-by: Ole Eskild Steensen <oleeskild@users.noreply.github.com>

* Bump @azure/storage-blob from 12.13.0 to 12.14.0

Bumps [@azure/storage-blob](https://github.com/Azure/azure-sdk-for-js) from 12.13.0 to 12.14.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Changelog-for-next-generation.md)
- [Commits](https://github.com/Azure/azure-sdk-for-js/compare/@azure/storage-blob_12.13.0...@azure/storage-blob_12.14.0)

---
updated-dependencies:
- dependency-name: "@azure/storage-blob"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Utsob Roy <roy@utsob.me>
Co-authored-by: Ole Eskild Steensen <oleeskild@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants