Skip to content

Commit

Permalink
styling: use full width for ecommerce
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-harris authored and skeptrunedev committed Nov 11, 2024
1 parent bda902d commit e9dca8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions clients/search-component/src/TrieveModal/Chat/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,16 @@ export const Message = ({
return (
<div>
{message.text == "Loading..." ? (
<div className="system">
<div
className={`system ${props.type === "ecommerce" ? "ecommerce" : ""}`}
>
<LoadingIcon className="loading" />
</div>
) : null}
{message.type === "system" && message.text != "Loading..." ? (
<div className="system">
<div
className={`system ${props.type === "ecommerce" ? "ecommerce" : ""}`}
>
{message.additional && props.type === "ecommerce" && (
<div className="additional-image-links">
{message.additional
Expand Down
2 changes: 1 addition & 1 deletion clients/search-component/src/TrieveModal/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ body {
}

.system {
@apply mt-2 sm:mt-8 mb-5 items-center overflow-ellipsis max-w-[100vw] sm:max-w-[530px];
@apply mt-2 sm:mt-8 mb-5 items-center overflow-ellipsis max-w-[100vw] sm:max-w-[330px];

p {
@apply pb-1;
Expand Down

0 comments on commit e9dca8a

Please sign in to comment.