Skip to content

Commit

Permalink
improvement(dashboard): view ingress on lg screens instead of xl
Browse files Browse the repository at this point in the history
  • Loading branch information
benstov authored and eysi09 committed May 29, 2019
1 parent a03cafb commit bd28965
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard/src/components/ingresses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ export default ({ ingresses }: IngressesProp) => {
const url = getIngressUrl(ingress)
return (
<LinkContainer key={ingress.path}>
<div className="visible-xl-block">
<div className="visible-lg-block">
<ExternalLink id={ingress.path} onClick={handleSelectIngress} >
{truncateMiddle(url)}
</ExternalLink>
</div>
<div className="hidden-xl">
<div className="hidden-lg">
<ExternalLink href={url} target="_blank">
{truncateMiddle(url)}
</ExternalLink>
Expand Down
3 changes: 2 additions & 1 deletion dashboard/src/components/module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const Module = styled.div`
border-radius: 4px;
margin: 0 1.3rem 1.3rem 0;
min-width: 17rem;
flex: 1 1;
max-width: 20rem;
`

type InfoCardsProps = {
Expand Down Expand Up @@ -72,7 +74,6 @@ const Fields = styled.div<FieldsProps>`

const Field = styled.div`
padding-bottom: .5rem;
max-width: 14rem;
&:last-of-type{
padding-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/containers/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default () => {
{selectedIngress &&
<div className="col-lg visible-lg-block">
{selectedIngress &&
<ViewIngress ingress={selectedIngress} width={"61.8vw"} />
<ViewIngress ingress={selectedIngress} />
}
</div>
}
Expand Down

0 comments on commit bd28965

Please sign in to comment.