refactor: use local svg file

This commit is contained in:
zerosoul
2022-03-17 11:12:35 +08:00
parent 46cfda76d0
commit 4bc9932d0f
42 changed files with 469 additions and 386 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
import styled from "styled-components";
import settingIcon from "../../assets/icons/setting.svg?url";
const StyledWrapper = styled.div`
display: flex;
height: 100%;
@@ -68,7 +69,8 @@ const StyledWrapper = styled.div`
display: flex;
width: 16px;
height: 16px;
background-image: url("https://static.nicegoodthings.com/project/rustchat/icon.setting.svg");
background-image: url(${settingIcon});
background-size: 16px;
}
> .badge {
color: #fff;
@@ -161,6 +163,12 @@ const StyledWrapper = styled.div`
font-weight: 900;
font-size: 10px;
line-height: 10px;
&.dot {
min-width: unset;
width: 6px;
height: 6px;
padding: 0;
}
&.mute {
background: #bfbfbf;
}