Skip to content

Commit

Permalink
chore(ai-help): improve History banner on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Dec 11, 2023
1 parent b21bed2 commit 5a4f14e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 24 deletions.
25 changes: 25 additions & 0 deletions client/src/plus/ai-help/history.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,29 @@
}
}
}

@media screen and (max-width: $screen-md) {
margin: 0.5rem;
padding: 1rem 1.5rem;

figure {
align-items: center;
display: flex;
flex-direction: row;
gap: 1.5rem;

.icons-highlighted {
margin-top: -0.75rem;
}

p {
margin: 0.25rem;
text-align: left;
}

a[href] {
display: inline-block;
}
}
}
}
48 changes: 24 additions & 24 deletions client/src/plus/ai-help/history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,29 +256,29 @@ export function AIHelpHistoryActivation() {
const gleanClick = useGleanClick();

return (
<aside className="ai-help-history-activation" tabIndex={-1}>
<section>
<p>
<HighlightedIcon name="history" />
</p>
<p>
<strong>Answer History</strong>
</p>
<p>
<span className="teaser">
You can now effortlessly revisit and continue past conversations
</span>
</p>
<p>
<Button
type="link"
href={`/${locale}/plus/settings#ai-help--history-enable`}
onClickHandler={() => gleanClick(`${AI_HELP}: history enable`)}
>
Enable History
</Button>
</p>
</section>
</aside>
<section className="ai-help-history-activation">
<figure>
<HighlightedIcon name="history" />
<figcaption>
<p>
<strong>Answer History</strong>
</p>
<p>
<span className="teaser">
You can now effortlessly revisit and continue past conversations
</span>
</p>
<p>
<Button
type="link"
href={`/${locale}/plus/settings#ai-help--history-enable`}
onClickHandler={() => gleanClick(`${AI_HELP}: history enable`)}
>
Enable History
</Button>
</p>
</figcaption>
</figure>
</section>
);
}

0 comments on commit 5a4f14e

Please sign in to comment.