monicahq / monica

Personal CRM. Remember everything about your friends, family and business relationships.
https://beta.monicahq.com
GNU Affero General Public License v3.0
21.41k stars 2.13k forks source link

Life metric events this month graph is broken for empty metrics #7192

Open rcky844 opened 6 months ago

rcky844 commented 6 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

When a life metric is freshly created and has never been "+1"'d, the graph shown after toggling goes off the screen.

Steps to reproduce

  1. Create a new life metric.
  2. After creation, click on the small buttons showing "0" in life metric created.
  3. The broken graph is shown.

image

Expected behavior

Either all the bars are the same height and not overscanned like this, or not show the bar.

Environment

Your own self-hosted instance (v5 a.k.a chandler version or main branch)

Version of Monica

763957f

Installation method

Manual installation with Archive

Web server

Nginx

Database engine version

SQlite

Additional info

No response

djaiss commented 6 months ago

Which browser do you use for this? I can't reproduce this issue on Firefox and Chrome.

rcky844 commented 6 months ago

Which browser do you use for this? I can't reproduce this issue on Firefox and Chrome.

Microsoft Edge on Linux.