vipzhicheng / logseq-plugin-block-calendar

A block calendar for Logseq.
MIT License
37 stars 13 forks source link

FR: Ability to set height and width of the calendar #11

Closed AvijeetPrasad closed 10 months ago

AvijeetPrasad commented 2 years ago

Hi,

Thanks for this great plugin. Really liking it! It would be really nice, if we can also have the ability to set the width and height of the calendar. That way we can adjust it's layout in wider screens for example.

xoyk commented 2 years ago

@AvijeetPrasad I've solved it for myself via custom.css:

.logseq-block-calendar {
    max-width: 400px;
    min-width: 315px;
}

#calendar-placeholder {
    display: flex;
    justify-content: center;
}

that is example, how to set minimum and maximum width for calendar and center it in the sidebar. You can adjust the styles for your needs.

vipzhicheng commented 1 year ago

Yes, I also think it should be done in custom.css.