mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-19 13:18:26 +02:00
Fix ugly gray outline around avatar (#1144)
* Fix ugly gray outline around avatar * Make avatar bigger * Make avatar even bigger * Update frontend build
This commit is contained in:
parent
7228498abb
commit
abf1ea6984
12 changed files with 34 additions and 66 deletions
|
|
@ -6,6 +6,8 @@ import HelpIcon from '@material-ui/icons/Help';
|
|||
import Avatar from '@material-ui/core/Avatar';
|
||||
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import useStyles from './styles';
|
||||
|
||||
|
||||
import {
|
||||
getProfileImageSrcString,
|
||||
|
|
@ -19,6 +21,7 @@ export default function SqueakUserAvatar({
|
|||
...props
|
||||
}) {
|
||||
const history = useHistory();
|
||||
const classes = useStyles();
|
||||
|
||||
const onAvatarClick = (event) => {
|
||||
event.preventDefault();
|
||||
|
|
@ -31,18 +34,18 @@ export default function SqueakUserAvatar({
|
|||
|
||||
function AvatarImage() {
|
||||
return (
|
||||
<Avatar src={`${getProfileImageSrcString(squeakProfile)}`} />
|
||||
<Avatar className={classes.large} src={`${getProfileImageSrcString(squeakProfile)}`} />
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<TimelineDot
|
||||
<div
|
||||
onClick={onAvatarClick}
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
{squeakProfile
|
||||
? AvatarImage()
|
||||
: <HelpIcon fontSize="large" />}
|
||||
</TimelineDot>
|
||||
: <HelpIcon className={classes.large} fontSize="large" />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,43 +1,8 @@
|
|||
import { makeStyles } from '@material-ui/styles';
|
||||
|
||||
export default makeStyles((theme) => ({
|
||||
widgetWrapper: {
|
||||
display: 'flex',
|
||||
minHeight: '100%',
|
||||
},
|
||||
widgetHeader: {
|
||||
padding: theme.spacing(3),
|
||||
paddingBottom: theme.spacing(1),
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
},
|
||||
widgetRoot: {
|
||||
boxShadow: theme.customShadows.widget,
|
||||
},
|
||||
widgetBody: {
|
||||
paddingBottom: theme.spacing(3),
|
||||
paddingRight: theme.spacing(3),
|
||||
paddingLeft: theme.spacing(3),
|
||||
},
|
||||
noPadding: {
|
||||
padding: 0,
|
||||
},
|
||||
paper: {
|
||||
padding: '6px 12px',
|
||||
},
|
||||
secondaryTail: {
|
||||
backgroundColor: theme.palette.secondary.main,
|
||||
},
|
||||
moreButton: {
|
||||
margin: -theme.spacing(1),
|
||||
padding: 0,
|
||||
width: 40,
|
||||
height: 40,
|
||||
color: theme.palette.text.hint,
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
color: 'rgba(255, 255, 255, 0.35)',
|
||||
},
|
||||
large: {
|
||||
width: theme.spacing(8),
|
||||
height: theme.spacing(8),
|
||||
},
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"files": {
|
||||
"main.js": "/static/js/main.be896e45.chunk.js",
|
||||
"main.js.map": "/static/js/main.be896e45.chunk.js.map",
|
||||
"main.js": "/static/js/main.0b0715d5.chunk.js",
|
||||
"main.js.map": "/static/js/main.0b0715d5.chunk.js.map",
|
||||
"runtime-main.js": "/static/js/runtime-main.9f0ba400.js",
|
||||
"runtime-main.js.map": "/static/js/runtime-main.9f0ba400.js.map",
|
||||
"static/css/2.ea4ba2f0.chunk.css": "/static/css/2.ea4ba2f0.chunk.css",
|
||||
"static/js/2.f63e8823.chunk.js": "/static/js/2.f63e8823.chunk.js",
|
||||
"static/js/2.f63e8823.chunk.js.map": "/static/js/2.f63e8823.chunk.js.map",
|
||||
"static/js/2.87cf65f5.chunk.js": "/static/js/2.87cf65f5.chunk.js",
|
||||
"static/js/2.87cf65f5.chunk.js.map": "/static/js/2.87cf65f5.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"precache-manifest.a67898a1c6a729c8ac4bef73ba9b4e3e.js": "/precache-manifest.a67898a1c6a729c8ac4bef73ba9b4e3e.js",
|
||||
"precache-manifest.adbc144f5f6972ef392acd806e1452dd.js": "/precache-manifest.adbc144f5f6972ef392acd806e1452dd.js",
|
||||
"service-worker.js": "/service-worker.js",
|
||||
"static/css/2.ea4ba2f0.chunk.css.map": "/static/css/2.ea4ba2f0.chunk.css.map",
|
||||
"static/js/2.f63e8823.chunk.js.LICENSE.txt": "/static/js/2.f63e8823.chunk.js.LICENSE.txt",
|
||||
"static/js/2.87cf65f5.chunk.js.LICENSE.txt": "/static/js/2.87cf65f5.chunk.js.LICENSE.txt",
|
||||
"static/media/font-awesome.min.css": "/static/media/fontawesome-webfont.fee66e71.woff",
|
||||
"static/media/google.svg": "/static/media/google.695a3160.svg",
|
||||
"static/media/logo.svg": "/static/media/logo.a0185b04.svg"
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
"entrypoints": [
|
||||
"static/js/runtime-main.9f0ba400.js",
|
||||
"static/css/2.ea4ba2f0.chunk.css",
|
||||
"static/js/2.f63e8823.chunk.js",
|
||||
"static/js/main.be896e45.chunk.js"
|
||||
"static/js/2.87cf65f5.chunk.js",
|
||||
"static/js/main.0b0715d5.chunk.js"
|
||||
]
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>Squeak Node</title><meta name="description" content="Squeak Node is a frontend for accessing a squeak node"><meta name="keywords" content="squeak, bitcoin, lightning"><meta name="author" content="Flatlogic LLC."><link href="/static/css/2.ea4ba2f0.chunk.css" rel="stylesheet"></head><body style="font-family:Roboto,sans-serif"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,f,l=r[0],a=r[1],i=r[2],c=0,s=[];c<l.length;c++)f=l[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var a=t[l];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var l=this["webpackJsonpsqueak-node-frontend"]=this["webpackJsonpsqueak-node-frontend"]||[],a=l.push.bind(l);l.push=r,l=l.slice();for(var i=0;i<l.length;i++)r(l[i]);var p=a;t()}([])</script><script src="/static/js/2.f63e8823.chunk.js"></script><script src="/static/js/main.be896e45.chunk.js"></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>Squeak Node</title><meta name="description" content="Squeak Node is a frontend for accessing a squeak node"><meta name="keywords" content="squeak, bitcoin, lightning"><meta name="author" content="Flatlogic LLC."><link href="/static/css/2.ea4ba2f0.chunk.css" rel="stylesheet"></head><body style="font-family:Roboto,sans-serif"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,f,l=r[0],a=r[1],i=r[2],c=0,s=[];c<l.length;c++)f=l[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var a=t[l];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var l=this["webpackJsonpsqueak-node-frontend"]=this["webpackJsonpsqueak-node-frontend"]||[],a=l.push.bind(l);l.push=r,l=l.slice();for(var i=0;i<l.length;i++)r(l[i]);var p=a;t()}([])</script><script src="/static/js/2.87cf65f5.chunk.js"></script><script src="/static/js/main.0b0715d5.chunk.js"></script></body></html>
|
||||
|
|
@ -1,23 +1,23 @@
|
|||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "5de1882fc1bdffbaed57b36bdca02104",
|
||||
"revision": "c6439e2a348955ad97b68f4d2e312bde",
|
||||
"url": "/index.html"
|
||||
},
|
||||
{
|
||||
"revision": "9207178093b3e39bfad1",
|
||||
"revision": "aa378ba87a38c8ea451a",
|
||||
"url": "/static/css/2.ea4ba2f0.chunk.css"
|
||||
},
|
||||
{
|
||||
"revision": "9207178093b3e39bfad1",
|
||||
"url": "/static/js/2.f63e8823.chunk.js"
|
||||
"revision": "aa378ba87a38c8ea451a",
|
||||
"url": "/static/js/2.87cf65f5.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "279b8724b89bf7d504758b3fa917239f",
|
||||
"url": "/static/js/2.f63e8823.chunk.js.LICENSE.txt"
|
||||
"url": "/static/js/2.87cf65f5.chunk.js.LICENSE.txt"
|
||||
},
|
||||
{
|
||||
"revision": "ff3adc5b77318e7031ed",
|
||||
"url": "/static/js/main.be896e45.chunk.js"
|
||||
"revision": "3795f76b5343ef7646c7",
|
||||
"url": "/static/js/main.0b0715d5.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "cc9816de5a8639d377ea",
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"/precache-manifest.a67898a1c6a729c8ac4bef73ba9b4e3e.js"
|
||||
"/precache-manifest.adbc144f5f6972ef392acd806e1452dd.js"
|
||||
);
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue