Fixed issues with ThemedLogo component implementation (#2588)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-01-23 14:17:50 -06:00
committed by GitHub
parent be39cb5af3
commit a01b855d2f
2 changed files with 14 additions and 10 deletions

View File

@@ -15,7 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
import React from "react";
import { ThemedLogo } from "mds";
import { Grid, ThemedLogo } from "mds";
import { useSelector } from "react-redux";
import { AppState } from "../../../../store";
@@ -35,14 +35,18 @@ const AutoColorIcon = ({ marginRight, marginTop }: IAutoColorIcon) => {
tinycolor(colorVariants?.backgroundColor || "#fff").getBrightness() <= 128;
return (
<ThemedLogo
style={{
width: 105,
marginRight,
marginTop,
fill: isDark ? "#fff" : "#081C42",
<Grid
sx={{
"& svg": {
width: 105,
marginRight,
marginTop,
fill: isDark ? "#fff" : "#081C42",
},
}}
/>
>
<ThemedLogo />
</Grid>
);
};

View File

@@ -227,10 +227,10 @@ const License = () => {
display: "flex",
alignItems: "center",
"& .min-icon": {
"& svg": {
width: "83px",
height: "14px",
marginLeft: "5px",
marginLeft: "8px",
marginRight: "5px",
},
}}