hungsu / typomagical-obsidian

An Obsidian theme for typographic appreciators, with support for Style Settings by mgmeyers
https://forum.obsidian.md/t/typomagical-a-theme-for-typographic-appreciators/26860
GNU General Public License v3.0
115 stars 5 forks source link

Tables elements alignment #8

Closed olrenso closed 2 years ago

olrenso commented 2 years ago

I'm not sure this is an issue (it may be a feature ?) but it's not possible to choose the alignment of the elements of the tables due to text-align: left in:

.markdown-preview-view td,
.markdown-preview-view th {
  text-align: left;
  border-right-color: transparent;
  border-left-color: transparent;
}

Expected behavior:

Actual behavior:

Markdown:

|                     |     Cellula Procariote     |   Cellula Eucariote   |
| ------------------- |:--------------------------:|:---------------------:|
| Dimensioni          |          1-10 μm           |       5-100 μm        | 
| DNA                 | Circolare, nel *nucleoide* | Lineare, nel *nucleo* |
| Nucleo              |          Assente           |       Presente        |
| Involucro nucleare  |          Assente           |       Presente        |
| Organelli           |          Assente           |       Presente        |
| Citoscheletro       |          Assente           |       Presente        |
| Dimensione ribosomi |            70S             |          80S          |
hungsu commented 2 years ago

You're absolutely right - I shouldn't set that in my stylesheet! I'm at work but will fix this soon

hungsu commented 2 years ago

@Lorenzoss Fix should be in now! Please update Typomagical and see if it works for you 😀

olrenso commented 2 years ago

Now it's perfect. Thank you!