Skip to content
Snippets Groups Projects
Commit 6736a009 authored by Alexandros Georgantas's avatar Alexandros Georgantas
Browse files

Corrections for the svg. Viewbox added plus css rules

parent f89e75fa
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ const Avatar = ({ status, width, height }) => { ...@@ -10,6 +10,7 @@ const Avatar = ({ status, width, height }) => {
<svg <svg
className={classes[classValue]} className={classes[classValue]}
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
viewbox={`0 0 ${width ? width + 5 : '105'} ${height ? height : '70'}`}
width={width ? width : '100'} width={width ? width : '100'}
height={height ? height : '70'} height={height ? height : '70'}
> >
......
figure { figure {
width: 6em; width: auto;
margin: 0 auto 2px; margin: 0 auto 2px;
text-align: center;
}
svg {
max-width: 100%;
width: auto;
max-height: 100vh;
height: auto;
} }
.default { .default {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment