Skip to content

Commit

Permalink
Merge pull request #693 from StampyAI/🦄
Browse files Browse the repository at this point in the history
🦄
  • Loading branch information
melissasamworth committed Jun 6, 2024
2 parents a8ed49d + acce4ba commit baddfe1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/components/Chatbot/ChatEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const ReferenceSummary = ({title, authors, source, url}: Citation & {titleClass?

return (
<div>
<div className="title padding-bottom-4">{title}</div>
<div className="large-bold black padding-bottom-8">{title}</div>
<div className="small">
<Authors authors={authors} />
<span>{' · '}</span>
Expand All @@ -108,8 +108,9 @@ const ReferencePopup = (citation: Citation) => {
return (
<div className="reference-contents bordered">
<ReferenceSummary {...citation} titleClass="large-bold" />
<div className="grey padding-bottom-16 padding-top-24">Referenced excerpt</div>
<div className="grey padding-bottom-16 padding-top-32 xs">Referenced excerpt</div>
<div
className="default"
dangerouslySetInnerHTML={{
__html: md.render(parsed[1]),
}}
Expand Down
3 changes: 2 additions & 1 deletion app/components/Chatbot/chat_entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ article.stampy {
word-wrap: break-word;
background-color: white;
border: 1px solid var(--colors-cool-grey-200, #dfe3e9);
padding: var(--spacing-24) var(--spacing-32);
padding: var(--spacing-40);
position: absolute;
transform: translateX(50%);
text-decoration: unset;
z-index: 3;
}

.reference-contents:hover,
Expand Down
1 change: 0 additions & 1 deletion app/components/Chatbot/widgit.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
.warning-floating {
position: fixed;
right: 4.44vw;
z-index: 100;
bottom: 4.44vw;
width: 10.13vw;
}
Expand Down
17 changes: 17 additions & 0 deletions app/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,23 @@ h2 {
min-height: 100%;
}

/* z-index classes */
.z-index-1 {
z-index: 1;
}

.z-index-2 {
z-index: 2;
}

.z-index-3 {
z-index: 3;
}

.z-index-4 {
z-index: 4;
}

/* other tags */

a {
Expand Down

0 comments on commit baddfe1

Please sign in to comment.