From a777ecb9898e97ecf8522397bed63588d6895206 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 19 Aug 2022 15:26:14 -0700 Subject: [PATCH] Scale avatar width and R. Pass theme as prop to class components. --- frontend/src/components/App.js | 2 +- frontend/src/components/HomePage.js | 10 +++++----- frontend/src/components/UserGenPage.js | 16 +++++++++++++++- frontend/static/css/index.css | 6 ++++++ 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index b2a1f889..c68af5d3 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -60,7 +60,7 @@ export default class App extends Component { {this.state.dark ? :} - + diff --git a/frontend/src/components/HomePage.js b/frontend/src/components/HomePage.js index e3fae635..184e6d3d 100644 --- a/frontend/src/components/HomePage.js +++ b/frontend/src/components/HomePage.js @@ -44,11 +44,11 @@ export default class HomePage extends Component {
- }/> - }/> - }/> - }/> - }/> + }/> + }/> + }/> + }/> + }/>
diff --git a/frontend/src/components/UserGenPage.js b/frontend/src/components/UserGenPage.js index c1eef8f2..fcdbd99d 100644 --- a/frontend/src/components/UserGenPage.js +++ b/frontend/src/components/UserGenPage.js @@ -181,6 +181,7 @@ class UserGenPage extends Component { render() { const { t, i18n} = this.props; + const fontSize = this.props.theme.typography.fontSize; return ( @@ -200,6 +201,7 @@ class UserGenPage extends Component { +<<<<<<< HEAD
+ >>>>>> Scale avatar width and R. Pass theme as prop to class components. />
@@ -319,7 +331,9 @@ class UserGenPage extends Component {
- +
diff --git a/frontend/static/css/index.css b/frontend/static/css/index.css index 44dde160..c9395a30 100644 --- a/frontend/static/css/index.css +++ b/frontend/static/css/index.css @@ -87,6 +87,12 @@ input[type=number] { left: -16px; } +.newAvatar { + border-radius: 50%; + border: 2px solid #555; + filter: drop-shadow(1px 1px 1px #000000); +} + .profileAvatar { border: 0.5px solid #555; filter: drop-shadow(0.5px 0.5px 0.5px #000000);