Skip to content

Commit

Permalink
Layout adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
relferreira committed Dec 9, 2019
1 parent 595f009 commit ebe91e9
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
7 changes: 3 additions & 4 deletions ui/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ function getBackground(type) {

const Button = styled.button`
padding: 5px 10px;
background: ${props => getBackground(props.type)};
color: ${fontColorWhite};
border: none;
background: transparent;
color: ${props => getBackground(props.type)};
border: 1px solid ${props => getBackground(props.type)};
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
cursor: pointer;
`;

Expand Down
4 changes: 4 additions & 0 deletions ui/components/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const Input = styled.input`
color: ${props => props.theme.controllerColor};
border-radius: 5px;
font-size: 12px;
&:disabled {
opacity: 0.3;
}
`;

export default Input;
4 changes: 4 additions & 0 deletions ui/components/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const Select = styled.select`
background: ${props => props.theme.controllerBackground};
color: ${props => props.theme.containerFont};
font-size: 12px;
&:disabled {
opacity: 0.3;
}
`;

export default Select;
4 changes: 1 addition & 3 deletions ui/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const Sidebar = ({ namespaces, links, onThemeChange }) => (
<p>Resources</p>
<hr />
</SidebarTitle>
{/* <NavLink to="/">Home</NavLink> */}
<NavLink to={`/${namespace}/nodes`}>Nodes</NavLink>
<NavLink to={`/${namespace}/services`}>Services</NavLink>
<NavLink to={`/${namespace}/deployments`}>Deployments</NavLink>
Expand All @@ -108,8 +107,7 @@ const Sidebar = ({ namespaces, links, onThemeChange }) => (
<NavLink to={`/${namespace}/hpa`}>Hpa</NavLink>
<NavLink to={`/${namespace}/pvc`}>Pvc</NavLink>
<NavLink to={`/${namespace}/pods`}>Pods</NavLink>
<NavLink to="/port-forward">Port Forward</NavLink>
{/* <NavLink to="/nodes">Nodes</NavLink> */}
<NavLink to={`/${namespace}/port-forward`}>Port Forward</NavLink>
<ThemeLink onClick={onThemeChange}>Change Theme</ThemeLink>
<HistoryContainer>
<SidebarTitle>
Expand Down
2 changes: 1 addition & 1 deletion ui/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function App() {
path="/:namespace/:type/:name/describe"
action="describe"
/>
<PortForward path="/port-forward" />
<PortForward path="/:namespace/port-forward" />
</CustomRouter>
</ErrorBoundary>
</Suspense>
Expand Down
3 changes: 2 additions & 1 deletion ui/containers/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const yaml = require('js-yaml');

const EditorContainer = styled.div`
position: relative;
height: 100%;
height: calc(100% + 32px);
margin: -16px;
`;

function Editor(props) {
Expand Down
2 changes: 2 additions & 0 deletions ui/containers/Logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { navigate } from '@reach/router';
const LogsContainer = styled.div`
position: relative;
height: 100%;
height: calc(100% + 32px);
margin: -16px;
color: white;
background: ${props => props.theme.background};
`;
Expand Down
2 changes: 1 addition & 1 deletion ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
href="./assets/favicon-16x16.png"
/>
<link
href="https://fonts.googleapis.com/css?family=Roboto+Mono"
href="https://fonts.googleapis.com/css?family=Roboto+Mono:400"
rel="stylesheet"
/>
</head>
Expand Down

0 comments on commit ebe91e9

Please sign in to comment.