From b9c7fe316bbd6a721d7ac2b69fef0020866e6c13 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Mon, 26 Sep 2022 12:14:06 +0200 Subject: [PATCH] Updated attribution widget design refs https://github.com/TryGhost/Team/issues/1941 --- .../dashboard/charts/attribution.hbs | 20 ++++----- .../source-attribution-table.hbs | 8 ++-- ghost/admin/app/styles/layouts/dashboard.css | 45 +++++++------------ 3 files changed, 28 insertions(+), 45 deletions(-) diff --git a/ghost/admin/app/components/dashboard/charts/attribution.hbs b/ghost/admin/app/components/dashboard/charts/attribution.hbs index c35192f44d..59f5aab4bb 100644 --- a/ghost/admin/app/components/dashboard/charts/attribution.hbs +++ b/ghost/admin/app/components/dashboard/charts/attribution.hbs @@ -1,21 +1,21 @@
-
+

Attribution

-
-
- -
-
-
- - -
+ +
+
+
+ +
+
+
+ -
-
diff --git a/ghost/admin/app/components/member-attribution/source-attribution-table.hbs b/ghost/admin/app/components/member-attribution/source-attribution-table.hbs index 1ba2ad71f8..aea28f1ca5 100644 --- a/ghost/admin/app/components/member-attribution/source-attribution-table.hbs +++ b/ghost/admin/app/components/member-attribution/source-attribution-table.hbs @@ -1,13 +1,12 @@
-
Sources
+
Sources
Signups
{{#if this.membersUtils.paidMembersEnabled}}
Paid Conversions
{{/if}}
-
-
+
{{#each this.sources as |sourceData|}}
@@ -44,7 +43,7 @@ {{on "click" this.openAllSources}} >
- Other + Other sources →
@@ -68,6 +67,5 @@ {{/if}}
{{/if}} -
diff --git a/ghost/admin/app/styles/layouts/dashboard.css b/ghost/admin/app/styles/layouts/dashboard.css index daba5b2b81..bd107a3633 100644 --- a/ghost/admin/app/styles/layouts/dashboard.css +++ b/ghost/admin/app/styles/layouts/dashboard.css @@ -1024,6 +1024,19 @@ Dashboard Zero */ /* --------------------------------- Dashboard Attribution */ +.gh-dashboard-attribution-list { + margin-top: -20px; +} + +.gh-dashboard-attribution-list .gh-dashboard-list-body { + padding-top: 8px; + padding-bottom: 8px; +} + +.gh-dashboard-attribution .gh-dashboard-list-title-sources { + opacity: 0; +} + .gh-dashboard-list-item-sub-source { padding-left: 20px; position: relative; @@ -1041,8 +1054,8 @@ Dashboard Attribution */ background: #E6E9EB; } -.gh-dsahboard-list-item-other-source { - text-decoration: underline; +.gh-dsahboard-list-item-other-source span { + color: var(--green); cursor: pointer; } @@ -1070,34 +1083,6 @@ Dashboard Attribution */ position: relative; } -.gh-dashboard-attribution-list-scrollable { - overflow-y: auto; - padding-top: 6px; - padding-bottom: 6px; -} - -.gh-dashboard-attribution-list .gh-dashboard-list-body:after { - content: " "; - position: absolute; - left: 0; - right: 0; - height: 24px; - bottom: 0; - background: linear-gradient(180deg,#ffffff00,hsl(0deg 0% 100%) 100%); - z-index: 1; -} - -.gh-dashboard-attribution-list .gh-dashboard-list-body:before { - content: " "; - position: absolute; - left: 0; - right: 0; - height: 24px; - top: 0; - background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); - z-index: 1; -} - /* --------------------------------- Dashboard Engagement */