Skip to content

Commit

Permalink
Merge branch 'main' into 165-video-hero
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusher authored Jan 22, 2024
2 parents 4d42021 + 34b57c0 commit 093225a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blocks/community-directory/community-directory.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
main .hero.block img {
filter: brightness(0.8);
}

/* Cards in community block to show in 4 columns using a flex layout. */
.community-directory.block .cards-list {
--anim-speed: 0.2s;
--zoom: 10px;
--columns: 1;

display: flex;
display: flex;
flex-wrap: wrap;
}

Expand Down
6 changes: 5 additions & 1 deletion blocks/look-ahead-list/look-ahead-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
width: 100%;
}

.section.look-ahead-list-container.community-directory-container .look-ahead-list {
margin-bottom: 15px;
}

.look-ahead-list input {
width: 97%;
padding: 5px 0 5px 20px;
Expand Down Expand Up @@ -69,7 +73,7 @@
width: 100%;
overflow-y: auto;
top: 39px;
z-index: 1;
z-index: 2;
}

/* Style for the dropdown options */
Expand Down
3 changes: 3 additions & 0 deletions blocks/look-ahead-list/look-ahead-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default async function decorate(block) {
const listItem = document.createElement('a');
listItem.href = community.path;
listItem.innerText = `${communityName.split(',')[0]} (${communityName})`;
if (config.text && config.text.toUpperCase() === 'CITY') {
listItem.innerText = `${communityName.split(',')[0]}`;
}
dropContent.append(listItem);
});
list.append(dropContent);
Expand Down

0 comments on commit 093225a

Please sign in to comment.