mcndt / obsidian-toggl-integration

A Toggl integration plugin for the popular knowledge base application Obsidian.
GNU General Public License v3.0
267 stars 19 forks source link

Ability to hide pie chart #63

Open mcndt opened 2 years ago

mcndt commented 2 years ago

I find myself creating many summary reports that are scoped to a single client or project, so that I can track my time spent over the query interval. This makes the pie chart redundant as there isn't a list of projects to break down:

image

Suggestion: add a keyword to hide the pie chart.

hbarudin commented 2 years ago

On the flip side, I'd love the ability to hide the bar chart to get a sense of how my time was spent in relation to all my time working.

Benature commented 4 months ago

On the flip side, I'd love the ability to hide the bar chart to get a sense of how my time was spent in relation to all my time working.

That's what I am looking forward to too.

At first, I want to implement this "hide bar chart" by CSS brutly. But I found that when the width is not big enough, this plugin only displays the bar chart without the pie chart. Not sure if my observation and guess are correct, but hiding the pie chart is much easier than hiding the bar chart for me.

The screenshot is what I expected: a pie chart and the list are aligned in the same line. image

.block-language-toggl .container {
  min-height: 230px;
}
.block-language-toggl
  .container
  > div
  > .is-flex-grow-2 {
  display: none;
}

.block-language-toggl
  .container
  > div.is-flex {
  position: absolute !important;
  transform: translateY(-30px);
  width: 500px;
}

.block-language-toggl
  .container
  .time-entry-list {
  margin-left: 230px;
}
HUGOSAMA1121 commented 4 months ago

您好,我想请问下您的这个project是如何显示类似“子任务”的这种呢? 今天刚用Toggl,烦请抽空解答 image image