Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🦄 #693

Merged
merged 2 commits into from
Jun 6, 2024
Merged

🦄 #693

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/components/Chatbot/ChatEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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 @@ -104,8 +104,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 @@ -122,10 +122,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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the element just have the z-index-3 class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah probably

}

.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 @@ -26,7 +26,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 @@ -382,6 +382,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
Loading