Skip to content
Snippets Groups Projects
Unverified Commit f4232138 authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

Search/item UI fixes (#14975)

* fix default SearcbResult item layout and icon shrinking

* tweak text
parent 8d5dd197
Branches
Tags
No related merge requests found
......@@ -19,6 +19,7 @@ const IconWrapper = styled.div`
background-color: #ddecfa;
color: ${color("brand")};
margin-right: 10px;
flex-shrink: 0;
`;
const ResultLink = styled(Link)`
......@@ -41,6 +42,11 @@ const ResultLink = styled(Link)`
}
}
h3 {
line-height: 1.2em;
word-wrap: break-word;
}
.Icon-info {
color: ${color("text-light")};
}
......@@ -198,9 +204,11 @@ function DefaultResult({ result, options }) {
<ResultLink to={result.getUrl()}>
<Flex align="center">
<ItemIcon item={result} />
<Title>{result.name}</Title>
{formatCollection(result.getCollection())}
<Score score={result.score} />
<Box>
<Title>{result.name}</Title>
{formatCollection(result.getCollection())}
<Score score={result.score} />
</Box>
</Flex>
{formatContext(result.context, options.compact)}
</ResultLink>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment