Fix /sites cut-off for 0 visitors plot (#3477)

pull/3479/head r2023.11.02-229
hq1 3 years ago committed by GitHub
parent 07cab27fef
commit 6148f4ad61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,7 +38,7 @@ defmodule PlausibleWeb.Live.Components.Visitors do
|> assign(:id, Ecto.UUID.generate())
~H"""
<svg viewBox={"0 -1 #{(@points_len - 1) * @tick} #{@height + 1}"} class="chart w-full mb-2">
<svg viewBox={"0 -1 #{(@points_len - 1) * @tick} #{@height + 2}"} class="chart w-full mb-2">
<defs>
<clipPath id={"gradient-cut-off-#{@id}"}>
<polyline points={@clip_points} />

Loading…
Cancel
Save