Skip to content

Commit

Permalink
feat(topic prompt generator UI): place message closer to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadavGit committed Mar 17, 2024
1 parent 62f27db commit b70ee5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,11 @@ div:has(#bannerMessage) + .readerApp.singlePanel .mobileNavMenu {
-moz-margin-start: 20px;
margin-inline-start: 10px;
}

.ai-tooltip .header .interfaceLinks {
cursor: default;
}

.header .interfaceLinks img {
height: 18px;
width: 18px;
Expand Down Expand Up @@ -856,6 +861,9 @@ div:has(#bannerMessage) + .readerApp.singlePanel .mobileNavMenu {
font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
}

.ai-tooltip img{
margin-bottom: -19px;
}

.header .interfaceLinks .interfaceLinks-menu .interfaceLinks-header:not(:first-child) {
border-top: 1px solid #CCC;
Expand Down
6 changes: 4 additions & 2 deletions static/js/TopicPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import {
ToolTipped,
SimpleLinkedBlock,
CategoryHeader,
ImageWithCaption, EnglishText, HebrewText
ImageWithCaption,
EnglishText,
HebrewText
} from './Misc';
import {ContentText} from "./ContentText";

Expand Down Expand Up @@ -401,7 +403,7 @@ const AiInfoTooltip = () => {
return (
<div className="ai-tooltip" onMouseEnter={() => setShowMessage(true)} onMouseLeave={() => setShowMessage(false)}>
{aiInfoIcon}
{(showMessage || true) && (
{showMessage && (
<div className="ai-message">
{aiMessage}
</div>
Expand Down

0 comments on commit b70ee5e

Please sign in to comment.