diff --git a/frontend/src/components/UserGenPage.js b/frontend/src/components/UserGenPage.js index fcdbd99d..91f1b822 100644 --- a/frontend/src/components/UserGenPage.js +++ b/frontend/src/components/UserGenPage.js @@ -182,44 +182,36 @@ class UserGenPage extends Component { render() { const { t, i18n} = this.props; const fontSize = this.props.theme.typography.fontSize; + const fontSizeFactor = fontSize / 14; // to scale sizes, default fontSize is 14 return (
- - {!this.state.loadingRobot && this.state.avatarUrl ? + + {!this.state.loadingRobot && this.state.avatarUrl ?
{this.state.nickname && getCookie("sessionid") ? -
- {this.state.nickname} + : ""} -<<<<<<< HEAD -
- + - >>>>>> Scale avatar width and R. Pass theme as prop to class components. + height: `${195*fontSizeFactor}px`, + width: `${200*fontSizeFactor}px`}} />
@@ -240,7 +232,7 @@ class UserGenPage extends Component { } - +
@@ -266,7 +258,7 @@ class UserGenPage extends Component { disabled={!(getCookie('robot_token')==this.state.token) || !this.props.avatarLoaded} onClick={()=> saveAsJson(this.state.nickname+'.json', this.createJsonFile())} > - + @@ -278,7 +270,7 @@ class UserGenPage extends Component { disabled={!(getCookie('robot_token')==this.state.token) || !this.props.avatarLoaded} onClick={()=> (copyToClipboard(getCookie('robot_token')) & this.props.setAppState({copiedToken:true}))} > - + @@ -286,7 +278,9 @@ class UserGenPage extends Component {
, endAdornment: - + + + , }} /> @@ -295,14 +289,14 @@ class UserGenPage extends Component { {this.state.tokenHasChanged ? :
@@ -318,11 +312,11 @@ class UserGenPage extends Component {
- + -
+
-
+
@@ -332,7 +326,7 @@ class UserGenPage extends Component {