Live Preview: Adjust Table Width

Use case or problem

The tables cannot autosize in Live Preview and there is no way to adjust the width/height of the table like you can in Excel. When in live preview add a drag bar that updates the value too.

Proposed solution

Add a syntax that lets you adjust height or width to autosize or manual.
Could be something like:

| {W:auto;H:15pt} Rest of cell text or another annotation or formula. |


+1 for this feature.
I often have tables with long URLs, and if a URL text is very long without containing a dash, the column will be so broad that the next column won’t display anymore in live preview.
I will have to switch to preview mode to be able to scroll the table.

Page Title URL 1 URL 2
This is the title of some random URL This whole column won’t be displayed in a narrow Obsidian pane.

If you want to reproduce, here is the table in markdown:

| Page Title                           | URL    1                                                                                                   | URL 2                                                                      |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| This is the title of some random URL | |  **This whole column won't be displayed in a narrow Obsidian pane.** |
|                                      |                                                                                                            |                                                                            |

+1 for this feature, loads of people requesting the ability to alter tables

1 Like

“Notion-Like tables” plugin stores this information in .obsidian/.../data.json but having this metadata inside cell (or next to table) makes sense because it would make moving files between vaults easier. Probably this feature will be considered only after adding editing table option so it might take a while :expressionless:

Would love to see this without plugins, but I made it work alright with MCL Wide Views snippet, the contextual typography plugin, and the Advanced Tables Plugin:

For those looking for a workaround meantime. :slight_smile: New to Obsidian and loving it so far!