dhruvik7 / obsidian-daily-stats

Plugin to view your daily word count across all notes in your Obsidian.md vault.
96 stars 16 forks source link

How can i customize the look of the panel? #4

Open Warden20 opened 3 years ago

Warden20 commented 3 years ago

I want to make it smaller to fit in my side panel also I want to start in January and finish in December

Kuiriel commented 2 years ago

I have a similar concern. For some reason the font and grid boxes are all absolutely enormous. With the default theme, they are a fixed size which I still find too large. With the Minimal Theme, the size of the font in this box can vary depending on the zoom level of the text document, but is much larger than text by default requiring text to be too small before it's the size I'd like.

It seems to depend on text size and be 'larger' than that by some fixed percentage.

The styles.css of the obsidian-daily-stats folder don't give away the answer though. I don't see anything to do with sizing.

On Reddit I found this snippet to add to the CSS file.

calendar-container {

width: 80%;
font-size: 40%;

}

This makes the font and square size manageable for a full pane. I wouldn't mind being able to resize the height as well as I'm using it as a half height pane, but typing height in as a command didn't seem to make a difference.