Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Feb 1, 2024
1 parent 31c3cc5 commit 084258c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ function ButtonCarousel({
// };

export default styled(ButtonCarousel)`
div[data-sm-content="buttonCarousel"] {
width: 80%;
}
.card {
--bs-card-bg: transparent !important;
}
.image-carousel-wrapper {
display: flex;
min-height: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ButtonWithImage.propTypes = {

export default styled(ButtonWithImage)`
border-radius: 20px;
border: 0px solid #4581ba;
border: 1px solid #4581ba;
overflow: hidden;
background: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function DPChat({
// send init event, since we will finish loading before we display the DP
setTimeout(() => {
dispatch(sendTextMessage({ text: '...' }));
}, 3000);
}, 1000);
// run resize once on mount, then add listener for future resize events
handleResize();
window.addEventListener('resize', handleResize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@ protected CompletableFuture<Void> onMessageActivity(TurnContext turnContext) {
}

if (dpResponse.isContentCard()) {
if(dpResponse.getClassification().equals(Classification.MORE_PRODUCT_INFORMATION))
{
return PetStoreAssistantUtilities.getImageCard(turnContext, dpResponse);
}
return PetStoreAssistantUtilities.getProductCarouselContentCard(turnContext, dpResponse);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public DPResponse search(String text, Classification classification) {
}
else if (products.size() > 0 && dpResponse.isContentCard())
{
dpResponseText = "Check out these products below";
dpResponseText = "Check out these products";
dpResponse.setDpResponseText(dpResponseText);
}
else
Expand Down

0 comments on commit 084258c

Please sign in to comment.