Merge pull request #31 from andrerfneves/bugfix/sidebar-item-clickable-area

Bugfix/sidebar item clickable area
This commit is contained in:
George Lima 2019-01-10 10:40:19 -02:00 committed by GitHub
commit 641b8fa6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 42275 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -34,6 +34,8 @@ const StyledLink = styled(Link)`
border-right: ${props => (props.isActive
? `1px solid ${props.theme.colors.sidebarItemActive}`
: 'none')};
z-index: 100;
cursor: pointer;
&:hover {
color: ${/* eslint-disable-next-line max-len */

View File

@ -7,7 +7,7 @@ import styled from 'styled-components';
import generateRandomString from '../utils/generate-random-string';
import { TextComponent } from '../components/text';
import ConsoleSymbol from '../assets/images/console_zcash.svg';
import ConsoleSymbol from '../assets/images/console_zcash.png';
const Wrapper = styled.div`
max-height: 100%;
@ -34,16 +34,21 @@ const initialLog = `
In order to ensure you are adequately protecting your privacy when using Zcash, please see <https://z.cash/support/security/>.
`;
const defaultState = `
\n
const defaultState = `
Thank you for running a Zcash node!
You're helping to strengthen the network and contributing to a social good :)
In order to ensure you are adequately protecting your privacy when using Zcash, please see <https://z.cash/support/security/>.
Block height | 0
Connections | 0
Network solution rate | 0 Sol/s
You are currently not mining.
To enable mining, add 'gen=1' to your zcash.conf and restart.
Since starting this node 0 minutes, 0 seconds ago:
- You have validated 0 transactions!
\n
------------------------------------------
`;
const breakpoints = [1, 4, 7, 10, 13];
@ -56,7 +61,7 @@ type State = {
export class ConsoleView extends Component<Props, State> {
state = {
log: initialLog + defaultState,
log: defaultState,
};
componentDidMount() {