Skip to content

Commit 952c8e8

Browse files
committed
icon alignment fixed
1 parent c26f81f commit 952c8e8

File tree

4 files changed

+19
-23
lines changed

4 files changed

+19
-23
lines changed

libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const Icon = ({
8585
return (
8686
<>
8787
<div
88-
className={`remixui_icon m-2`}
88+
className={`remixui_icon m-2 pt-1`}
8989
onClick={() => {
9090
(verticalIconPlugin as any).toggle(name)
9191
}}

libs/remix-ui/vertical-icons-panel/src/lib/components/IconList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface OtherIconsProps {
1212

1313
function IconList ({ verticalIconsPlugin, itemContextAction, icons, theme }: OtherIconsProps) {
1414
return (
15-
<div id="otherIcons">
15+
<div className="" id="otherIcons">
1616
{
1717
icons
1818
.map(p => (

libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
flex-flow: column nowrap;
2020
justify-content: space-between;
2121
align-items: center;
22-
text-align: center;
2322
}
2423
.remixui_icon:hover {
2524
box-shadow: 0px 0px 14px -7px;
@@ -30,6 +29,7 @@
3029
width: 36px;
3130
height: 36px;
3231
border-radius: 8px;
32+
align-items: center;
3333
}
3434
.remixui_icon img {
3535
width: 28px;
@@ -40,15 +40,12 @@
4040

4141
.remixui_icon .selected-dark {
4242
filter: invert(1) grayscale(1);
43-
4443
}
4544

4645
.remixui_icon .selected-light {
4746
filter: invert(0) grayscale(1);
4847
}
4948

50-
.remixui_image {
51-
}
5249
.remixui_icon svg {
5350
width: 28px;
5451
height: 28px;
@@ -120,9 +117,12 @@
120117
}
121118
.remixui_default-icons-container {
122119
border-bottom: 2px solid #3f4455;
120+
text-align: center;
123121
}
124122
.remixui_icon-chevron {
125123
z-index: 1000;
124+
cursor: pointer;
125+
align-items: center;
126126
}
127127

128128
.remixui_settings {
@@ -133,7 +133,3 @@
133133
list-style: none;
134134
margin: 0px;
135135
}
136-
137-
.remixui_icon-chevron {
138-
cursor: pointer;
139-
}

libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,19 @@ const RemixUiVerticalIconsPanel = ({
109109
itemContextAction={itemContextAction}
110110
/>
111111
</div>
112-
<div>
113-
{ scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (<Chevron
114-
divElementRef={scrollableRef}
115-
direction='down'
116-
cssRule={'fa fa-chevron-down remixui_icon-chevron my-0'}
117-
/>) : null }
118-
<IconList
119-
theme={theme}
120-
icons={icons.filter((p) => p.profile.name === 'settings' || p.profile.name === 'pluginManager')}
121-
verticalIconsPlugin={verticalIconsPlugin}
122-
itemContextAction={itemContextAction}
123-
/>
124-
</div>
112+
<div className="remixui_default-icons-container border-0">
113+
{ scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (<Chevron
114+
divElementRef={scrollableRef}
115+
direction='down'
116+
cssRule={'fa fa-chevron-down remixui_icon-chevron my-0'}
117+
/>) : null }
118+
<IconList
119+
theme={theme}
120+
icons={icons.filter((p) => p.profile.name === 'settings' || p.profile.name === 'pluginManager')}
121+
verticalIconsPlugin={verticalIconsPlugin}
122+
itemContextAction={itemContextAction}
123+
/>
124+
</div>
125125
</div>
126126
</div>
127127
)

0 commit comments

Comments
 (0)