diff --git a/_app/src/HomePage.js b/_app/src/HomePage.js
index 27e2fff4..27f63ec9 100644
--- a/_app/src/HomePage.js
+++ b/_app/src/HomePage.js
@@ -179,6 +179,7 @@ const Examples = () => {
const onChangeSelection = ( [ selectedExampleSlug ] ) => {
setSelectedExample( selectedExampleSlug );
};
+
useEffect( () => {
if ( filterTags ) {
setSearchParams( { tags: filterTags, operator: filterOperator } );
@@ -220,12 +221,14 @@ const Examples = () => {
<_DataViews />
- { selectedExample && (
+ { selectedExample ? (
+ ) : (
+
👈 Select an example to view the demo
) }
diff --git a/_app/src/styles.scss b/_app/src/styles.scss
index 72a3a179..b7692a19 100644
--- a/_app/src/styles.scss
+++ b/_app/src/styles.scss
@@ -64,8 +64,19 @@ body {
}
.iframeContainer {
- width: 60%;
+ width: 50%;
+ height: 90vh;
float: left;
+
+ display: table;
+ }
+
+ .iframeContainer p {
+ text-align: center;
+ vertical-align: middle;
+ display: table-cell;
+ color: rgb(238, 55, 55);
+ font-size: 1.2em;
}
}
@@ -82,7 +93,7 @@ iframe {
}
.dataviews-view-list .dataviews-view-list__media-wrapper,
-.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
+.dataviews-view-list li .dataviews-view-list__primary-field {
display: none;
}
@@ -100,3 +111,8 @@ iframe {
.dataviews-view-list__fields > .dataviews-view-list__field:nth-of-type(5) {
flex: 1 1 100%;
}
+
+.dataviews-view-list li.is-selected.is-selected {
+ background: #fcfcfc;
+ border-right: 4px solid rgb(20, 19, 19);
+}