SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
531 stars 112 forks source link

Heatmap Calendar does not render correctly with ITS-Theme [Bug] #102

Closed lth29 closed 2 years ago

lth29 commented 2 years ago

Describe the bug

Heatmap Calendar does not render well. Once you write down the code, you can see many bullet points around and some of them overlap the calendar boxes.

Expected behavior Calendar without bullet points around.

To Reproduce

Steps to reproduce the behavior:

  1. Install Heatmap Calendar and Dataview
  2. Create a folder called Example and a new page called 2022-04-18 with metadata read::1.
  3. and copy the next code adding dataviewjs at the beginning.
dv.span("**🏋️ Exercise 🏋️**")

const calendarData = {
    year: 2022,
    colors: {
        red: ["#ff9e82","#ff7b55","#ff4d1a","#e73400","#bd2a00"]
    },
    entries: []
}

for(let page of dv.pages('"Example"').where(p=>p.read).sort(p=>p.file.name)){
    calendarData.entries.push({
        date: page.file.name,
        intensity: page.read
    })

}

renderHeatmapCalendar(this.container, calendarData)

Screenshots

Image

OS

Where does the bug occur?

Obsidian Version: v0.14.5

SlRvb commented 2 years ago

I believe this should be fixed now b3e7ee0, do update the theme and let me know

lth29 commented 2 years ago

yeah, it's working correctly now. Thank you so much.