From ec5429a85cddcebe6f8f554f8341b70f152e5b9b Mon Sep 17 00:00:00 2001 From: Everett Date: Wed, 18 Oct 2023 12:32:39 +0200 Subject: [PATCH] truncate (...) long project name (closes #540) (#670) * fix: add back button to funder flow, first step * style: project header truncates long names; edit button in NW corner on mobile * style: dont truncate project title in header * style: improve project profile column layout; project-badge max-width is prop number --------- Co-authored-by: Jason Efstathiou --- src/lib/components/copyable/copyable.svelte | 6 +- .../project-badge/project-badge.svelte | 2 + .../project-profile-header.svelte | 53 ++++++-------- src/lib/components/section/section.svelte | 10 +-- .../supporters.section.svelte | 10 +-- .../unclaimed-project-card.svelte | 2 +- .../project-profile/project-profile.svelte | 71 ++++++++----------- .../streams/sections/splits.section.svelte | 10 +-- .../claim-project/steps/review/review.svelte | 8 ++- src/styles/app.css | 6 ++ 10 files changed, 73 insertions(+), 105 deletions(-) diff --git a/src/lib/components/copyable/copyable.svelte b/src/lib/components/copyable/copyable.svelte index 59f116370..47d07ac96 100644 --- a/src/lib/components/copyable/copyable.svelte +++ b/src/lib/components/copyable/copyable.svelte @@ -28,7 +28,10 @@ on:mouseenter={() => (visible = true)} on:mouseleave={() => (visible = false)} > - + +
+ +
(); -
-
- -
-
-

{project.source.repoName}

- - - +
+
+
+ +
+
+

{project.source.repoName}

+ + + +
+ {#if editButton} +
+ +
+ {/if}
- - diff --git a/src/lib/components/section/section.svelte b/src/lib/components/section/section.svelte index 4fe02ba50..3a3e488de 100644 --- a/src/lib/components/section/section.svelte +++ b/src/lib/components/section/section.svelte @@ -10,14 +10,14 @@ export let collapsed = false; -
+
-
+
@@ -26,12 +26,6 @@ diff --git a/src/lib/components/supporters-section/supporters.section.svelte b/src/lib/components/supporters-section/supporters.section.svelte index d1b0f72c8..7bdb4ca97 100644 --- a/src/lib/components/supporters-section/supporters.section.svelte +++ b/src/lib/components/supporters-section/supporters.section.svelte @@ -44,7 +44,7 @@ } -
+
{/await} {/if} -
+
diff --git a/src/routes/app/(app)/streams/sections/splits.section.svelte b/src/routes/app/(app)/streams/sections/splits.section.svelte index aa144bfc0..0932e208a 100644 --- a/src/routes/app/(app)/streams/sections/splits.section.svelte +++ b/src/routes/app/(app)/streams/sections/splits.section.svelte @@ -144,7 +144,7 @@ } -
+
- - diff --git a/src/routes/app/(flows)/claim-project/steps/review/review.svelte b/src/routes/app/(flows)/claim-project/steps/review/review.svelte index b6fbc3533..1d90fd629 100644 --- a/src/routes/app/(flows)/claim-project/steps/review/review.svelte +++ b/src/routes/app/(flows)/claim-project/steps/review/review.svelte @@ -21,7 +21,6 @@ import GitProjectService from '$lib/utils/project/GitProjectService'; import PenIcon from 'radicle-design-system/icons/Pen.svelte'; import Drip from '$lib/components/illustrations/drip.svelte'; - import Pen from 'radicle-design-system/icons/Pen.svelte'; import modal from '$lib/stores/modal'; import ProjectCustomizerModal from './components/project-customizer-modal.svelte'; @@ -94,8 +93,11 @@ >
- - +
diff --git a/src/styles/app.css b/src/styles/app.css index bb4167401..2aa3378d7 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -63,3 +63,9 @@ h1, .tabular-nums { font-feature-settings: 'tnum', 'zero'; } + +.app-section { + display: flex; + flex-direction: column; + gap: 1.5rem; +}