-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Searchbox overflowing when displaying long name #992
- Loading branch information
Showing
12 changed files
with
84 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
import { styled } from 'styled-components'; | ||
import { css, styled } from 'styled-components'; | ||
import { LAYOUT_CONTAINER } from '../helpers/containers'; | ||
|
||
/** Centered column */ | ||
export const ContainerNarrow = styled.div` | ||
width: min(100%, ${props => props.theme.containerWidth}rem); | ||
const common = css` | ||
margin: auto; | ||
padding: ${props => props.theme.margin}rem; | ||
// Extra space for the navbar below | ||
padding: ${p => p.theme.size()}; | ||
container: ${LAYOUT_CONTAINER} / inline-size; | ||
padding-bottom: 10rem; | ||
`; | ||
|
||
/** Centered column */ | ||
export const ContainerNarrow = styled.div` | ||
width: min(100%, ${p => p.theme.containerWidth}rem); | ||
${common} | ||
`; | ||
|
||
export const ContainerWide = styled.div` | ||
width: min(100%, ${props => props.theme.containerWidthWide}); | ||
margin: auto; | ||
padding: ${props => props.theme.margin}rem; | ||
// Extra space for the navbar below | ||
padding-bottom: 10rem; | ||
width: min(100%, ${p => p.theme.containerWidthWide}); | ||
${common} | ||
`; | ||
|
||
/** Full-page wrapper */ | ||
export const ContainerFull = styled.div` | ||
padding: ${props => props.theme.margin}rem; | ||
container: ${LAYOUT_CONTAINER} / inline-size; | ||
padding: ${p => p.theme.size()}; | ||
padding-bottom: 10rem; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export const MAIN_CONTAINER = 'main'; | ||
export const ALL_PROPS_CONTAINER = 'all-props'; | ||
export const CARD_CONTAINER = 'card'; | ||
export const LAYOUT_CONTAINER = 'layout-container'; | ||
export const DIALOG_CONTENT_CONTAINER = 'dialog-content'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters