From 896372cd09d9ed63494b5218db10d611dce9d0c9 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Tue, 5 Apr 2022 17:04:57 +0200 Subject: [PATCH] Some visual improvements to projects view Signed-off-by: Alexis Sellier --- src/Diagram.svelte | 18 ++++++++++++------ src/LinearGradient.svelte | 5 +++-- src/base/orgs/View/Projects.svelte | 2 +- src/base/projects/History.svelte | 1 - src/base/projects/Widget.svelte | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/Diagram.svelte b/src/Diagram.svelte index c2cdbd6d3..ea77fabdb 100644 --- a/src/Diagram.svelte +++ b/src/Diagram.svelte @@ -4,7 +4,6 @@ export let strokeWidth: number; export let points: CommitGroup[]; - export let strokeColor = "#ff55ff"; export let viewBoxWidth: number; export let viewBoxHeight: number; @@ -12,7 +11,7 @@ let path = ""; let areaPath = ""; - let heightWithPadding = viewBoxHeight + 10; + let heightWithPadding = viewBoxHeight + 16; // The latest point on the x axis, starting at 0 until `viewBoxWidth` let lastWidthPoint = viewBoxWidth; @@ -65,14 +64,21 @@ // Creates the stroke path with the array of points path = createPath(); // Concats a path closing for it to be the area under the stroke - areaPath = path.concat(`L${lastWidthPoint},${heightWithPadding}L${viewBoxWidth},${viewBoxHeight+10}Z`); + areaPath = path.concat(`L${lastWidthPoint},${viewBoxHeight}L${viewBoxWidth},${viewBoxHeight}Z`); }); - + + + + + + + + - - + + diff --git a/src/LinearGradient.svelte b/src/LinearGradient.svelte index 64515412e..4e3073c0b 100644 --- a/src/LinearGradient.svelte +++ b/src/LinearGradient.svelte @@ -6,8 +6,9 @@ - - + + + diff --git a/src/base/orgs/View/Projects.svelte b/src/base/orgs/View/Projects.svelte index 1ff3eeb20..c2e543fab 100644 --- a/src/base/orgs/View/Projects.svelte +++ b/src/base/orgs/View/Projects.svelte @@ -50,7 +50,7 @@ margin-top: 1rem; } .projects .project { - margin-bottom: 1rem; + margin-bottom: 0.5rem; } .actions { display: flex; diff --git a/src/base/projects/History.svelte b/src/base/projects/History.svelte index 9dc9ce9ff..94b0d57f0 100644 --- a/src/base/projects/History.svelte +++ b/src/base/projects/History.svelte @@ -1,7 +1,6 @@