From 4a665f68fc789716b9f000d9bab277a1bab37405 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 15 Aug 2024 14:39:14 +0200 Subject: [PATCH] Fix preview --- .../sites/features/jetpack/jetpack-sites-dataviews.tsx | 1 + .../sections/sites/sites-dashboard/style.scss | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/a8c-for-agencies/sections/sites/features/jetpack/jetpack-sites-dataviews.tsx b/client/a8c-for-agencies/sections/sites/features/jetpack/jetpack-sites-dataviews.tsx index 3d9c6188c71ac6..dc1310a6d21094 100644 --- a/client/a8c-for-agencies/sections/sites/features/jetpack/jetpack-sites-dataviews.tsx +++ b/client/a8c-for-agencies/sections/sites/features/jetpack/jetpack-sites-dataviews.tsx @@ -79,6 +79,7 @@ export const JetpackSitesDataViews = ( { ...prevState, selectedItem: site, type: DATAVIEWS_LIST, + fields: [ 'site' ], } ) ); }, [ isNotProduction, setDataViewsState ] diff --git a/client/a8c-for-agencies/sections/sites/sites-dashboard/style.scss b/client/a8c-for-agencies/sections/sites/sites-dashboard/style.scss index 00a852385c51ce..0633ebea2bdeab 100644 --- a/client/a8c-for-agencies/sections/sites/sites-dashboard/style.scss +++ b/client/a8c-for-agencies/sections/sites/sites-dashboard/style.scss @@ -346,7 +346,6 @@ overflow-y: auto; li { - padding: 8px 24px; border-bottom: 1px solid var(--color-accent-5); } @@ -394,6 +393,15 @@ } } + // Ideally instead of reusing the site name full field + // We should be setting a media field and a primary field. + .dataviews-view-list__media-wrapper { + display: none; + } + .dataviews-view-list__primary-field { + display: none; + } + .sites-overview__stats-trend, .sites-overview__column-action-button, .sites-overview__row-status,