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

Multiple tables on same page gets shifted columns #552

Closed
diizzyy opened this issue Dec 7, 2022 · 3 comments
Closed

Multiple tables on same page gets shifted columns #552

diizzyy opened this issue Dec 7, 2022 · 3 comments
Labels
question Further information is requested

Comments

@diizzyy
Copy link

diizzyy commented Dec 7, 2022

Not a huge deal but (2nd) column width seem to increase by each table despite contents having the same width (total width is the same).

How to reproduce:
Create two or more identical tables on the same page containing two columns

Thanks for a great theme!

@diizzyy diizzyy changed the title Multiple tables on same gets shifted columns Multiple tables on same page gets shifted columns Dec 7, 2022
@xoxys
Copy link
Member

xoxys commented Dec 9, 2022

Cant reproduce. Can you please create a minimal example? In the best case, a public accessible git repository.

## Attributes

| Name            | Description                                      |
| --------------- | ------------------------------------------------ |
| size (optional) | size of the first column (small\|regular\|large) |

| Name            | Description                                      |
| --------------- | ------------------------------------------------ |
| size (optional) | size of the first column (small\|regular\|large) |

| Name            | Description                                      |
| --------------- | ------------------------------------------------ |
| size (optional) | size of the first column (small\|regular\|large) |

| Name            | Description                                      |
| --------------- | ------------------------------------------------ |
| size (optional) | size of the first column (small\|regular\|large) |

image

@xoxys xoxys added the question Further information is requested label Dec 9, 2022
@diizzyy
Copy link
Author

diizzyy commented Dec 9, 2022

I found what's causing this issue.
If a table and columns share the same width in markdown the rendered position gets adjusted depending on amount of characters within the first row of cells.

| XXXXXX	| FooFooFooFo		|
|---------------|-----------------------|
| XXXXXXXXXX	| 10.0.10.1/24		|
| XXXXXXX	| 10.0.10.243		|
| XXXXXXXXX	| 10.0.10.245		|
| XXXXXX	| 10.0.10.253		|


| XXXXXX	| FooFooFooFo		|
|---------------|-----------------------|
| XXXXXXXXXXX	| 10.0.100.1/24		|
| XXXXXXX	| 10.0.100.90		|
| XXXXXXXXXXX	| 10.0.100.100		|
| XXXXXX	| 10.0.100.240		|

I guess that's not adjustable?

@xoxys
Copy link
Member

xoxys commented Dec 9, 2022

I would suggest to always use spaces instead of tabs, see https://github.com/DavidAnson/markdownlint/blob/v0.26.2/doc/Rules.md#md010

Besides that, there is as far as I know no way to control table rendering in the theme. This is fully controlled by the hugo markdown renderer. For this reason, I'm going to close this issue.

@xoxys xoxys closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants