Skip to content

Commit

Permalink
Merge pull request #327 from Mink-Mink/master
Browse files Browse the repository at this point in the history
Applied most style changes from the new figma design
  • Loading branch information
Aprillion committed Oct 5, 2023
2 parents ab4e94f + e8bfe86 commit 964d457
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 58 deletions.
1 change: 1 addition & 0 deletions app/assets/icons/undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions app/components/icons-generated/Undo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as React from 'react'
const SvgUndo = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
height={24}
viewBox="0 -960 960 960"
width={24}
{...props}
>
<path
className="undo_svg__gray"
d="M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z"
/>
</svg>
)
export default SvgUndo
1 change: 1 addition & 0 deletions app/components/icons-generated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export {default as MagnifyingGlass} from './MagnifyingGlass'
export {default as Search} from './Search'
export {default as Share} from './Share'
export {default as Tag} from './Tag'
export {default as Undo} from './Undo'
export {default as Users} from './Users'
4 changes: 2 additions & 2 deletions app/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function Search({
const searchInputRef = useRef('')

const [urlSearchParams] = useSearchParams()
const placeholder = urlSearchParams.get('placeholder') ?? 'Search for more questions here...'
const placeholder = urlSearchParams.get('placeholder') ?? 'Ask a question about AGI safety'

const {search, isPendingSearch, results} = useSearch(onSiteAnswersRef, limitFromUrl)

Expand Down Expand Up @@ -265,7 +265,7 @@ const ShowMoreSuggestions = ({
return (
<Dialog onClose={onClose}>
<div className="dialog-title">
You searched for &quot;{question}&quot;.
<div className="dialog-title-header">You searched for &quot;{question}&quot;.</div>
<br />
Here are some questions we&apos;re still answering. Are any of these what you&apos;re
looking for?
Expand Down
Loading

0 comments on commit 964d457

Please sign in to comment.