NicoNekoru / obsidan-advanced-table-xt

Plugin that adds features to tables in obsidian including merging, vertical headers, and custom css
Apache License 2.0
101 stars 5 forks source link

Style sheet applicaiton a continuation of #57 #67

Open HippyCraig opened 5 months ago

HippyCraig commented 5 months ago

As some additions to [Question] What am i doing wrong? #57

I just started back on testing this, got tied up with work, and Im not sure my style sheet is taking effect.

{}
--- ~ {.ccg-work-table-settings}
| Env | Account              | Type    | Link |
| --- | -------------------- | ------- | ---- |
| Dev | Domain\\Some Account | AD      | Link |
| ^   | Domain\\Some Account | AD      | Link | 
| QA  | Domain\\Some Account | AD      | Link | 
| ^   | Domain\\Some Account | AD      | Link | 
| PRO | Domain\\Some Account | AD      | Link | 
| ^   |  Domain\\Some Account |  Sybase  |  Link | 

When looking at the read view and looking at the chrome dev tools I do not see my style sheet being applied. I would also like to pass along some style info into the class as follows not sure if this changes how this works but I tried both and neither did

--- ~ {.ccg-work-table-settings} --- ~ {.ccg-work-table-settings style="--SOMEVARIABLE = COLOR}

Aside from this is there a way to merge a whole row with the one above. I was think about it and if there is a way, I can make the table easier to read with sepereate rows but just merge the whole row with the one above. I know I can put that data in the cell above with a \<br\/> (HTLM line break) but that makes teh line very long and hard to modify, it could make the source easier to read and modify.

I will move this to a new ticket and refrence this one.

HippyCraig commented 5 months ago

So I did some more experimenting and I had to add that class to the YAML at the top under classes That picked up the style but it’s not taking the style override. And with or without the override style the render page will not scroll