Skip to content

Commit 06eeab4

Browse files
shakaoabchatra
authored andcommitted
Inline wall icon svg to align on mac and PC (microsoft#6332)
1 parent e684aa3 commit 06eeab4

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

theme/image-editor/tilePalette.less

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,23 @@
7777

7878
.tile-palette-swatch.wall {
7979
box-sizing: content-box;
80-
padding: .375rem .5rem;
81-
font-size: 2rem;
82-
line-height: 2.3rem;
83-
color: var(--sidebar-icon-inactive-color);
80+
padding: .5rem;
81+
height: 2rem;
82+
width: 2rem;
83+
84+
svg {
85+
width: 100%;
86+
height: 100%;
87+
fill: var(--sidebar-icon-inactive-color);
88+
}
8489
}
8590

8691
.tile-palette-swatch.wall.selected {
8792
background-color: var(--wall-color);
88-
color: var(--sidebar-icon-active-color);
89-
}
9093

91-
.tile-palette-swatch.wall > .xicon {
92-
position: relative;
93-
top: 0.35rem;
94+
svg {
95+
fill: var(--sidebar-icon-active-color);
96+
}
9497
}
9598

9699
.tile-palette-swatch .image-editor-button {

webapp/src/components/ImageEditor/tilemap/TilePalette.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ class TilePaletteImpl extends React.Component<TilePaletteProps,{}> {
133133
onClick={this.wallClickHandler}
134134
title={lf("Draw walls")}
135135
role="button">
136-
<span className="xicon wall" />
136+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" width="1000" height="1000">
137+
<path d="M 968.49289,108.05443 771.30518,3.7581533 183.65231,166.0694 l 2.58963,202.62638 -156.247366,54.4148 0.872799,492.65563 179.544267,81.08212 758.08125,-222.4989 z M 765.6275,42.836761 916.79721,122.02922 412.26526,262.35026 250.08966,187.43643 Z M 934.62189,739.077 234.56171,946.92199 233.81426,554.79578 422.38222,493.25053 423.42046,300.4059 934.62189,157.54989 Z M 204.96854,402.33519 361.49056,473.98651 222.88861,518.46222 75.008408,444.5191 Z" />
138+
</svg>
137139
</div>
138140
</div>
139141
<Pivot options={tabs} selected={galleryOpen ? 1 : 0} onChange={this.pivotHandler} />

0 commit comments

Comments
 (0)