fix(directory): svg css fix

This commit is contained in:
Haoyu Xu
2023-06-25 04:24:05 -04:00
parent 4cd9a7e83b
commit aa6fc5d77e
5 changed files with 16 additions and 8 deletions

View File

@@ -17,4 +17,5 @@ export default function CharIcon(props) {
CharIcon.propTypes = { CharIcon.propTypes = {
viewBox: PropTypes.string, viewBox: PropTypes.string,
type: PropTypes.string, type: PropTypes.string,
style: PropTypes.object,
}; };

View File

@@ -121,9 +121,12 @@
} }
.item_icon { .item_icon {
width: 1rem;
fill: var(--text-color);
transition: fill cubic-bezier(0.65, 0.05, 0.36, 1) 0.3s; transition: fill cubic-bezier(0.65, 0.05, 0.36, 1) 0.3s;
svg {
width: 1rem;
fill: var(--text-color);
}
} }
&:hover, &:hover,

View File

@@ -120,9 +120,6 @@ export default function Root() {
viewBox={ viewBox={
headerIcon === 'operator' ? '0 0 88.969 71.469' : '0 0 94.563 67.437' headerIcon === 'operator' ? '0 0 88.969 71.469' : '0 0 94.563 67.437'
} }
style={{
height: "2.5rem"
}}
/> />
</section> </section>
)} )}

View File

@@ -103,8 +103,11 @@
flex-direction: row; flex-direction: row;
align-items: baseline; align-items: baseline;
text-align: center; text-align: center;
width: 1.5rem;
fill: var(--text-color); svg {
width: 1.5rem;
fill: var(--text-color);
}
} }
} }

View File

@@ -17,9 +17,13 @@
.icon { .icon {
margin-right: 1.5rem; margin-right: 1.5rem;
fill: var(--text-color);
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
svg {
fill: var(--text-color);
height: 2.5rem;
}
} }
@media (max-width: 600px) { @media (max-width: 600px) {