Skip to content

Commit a5c0db3

Browse files
committed
updated filter dialog UI
1 parent 7cea685 commit a5c0db3

File tree

2 files changed

+39
-29
lines changed

2 files changed

+39
-29
lines changed

src/components/BrowserFilter/BrowserFilter.react.js

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -210,33 +210,37 @@ export default class BrowserFilter extends React.Component {
210210
)}
211211
{!this.state.confirmName && (
212212
<div className={styles.footer}>
213-
<Button
214-
color="white"
215-
value="Save"
216-
width="120px"
217-
onClick={() => this.setState({ confirmName: true })}
218-
/>
219-
<Button
220-
color="white"
221-
value="Clear"
222-
disabled={this.state.filters.size === 0}
223-
width="120px"
224-
onClick={() => this.clear()}
225-
/>
226-
<Button
227-
color="white"
228-
value="Add"
229-
disabled={Object.keys(available).length === 0}
230-
width="120px"
231-
onClick={() => this.addRow()}
232-
/>
233-
<Button
234-
color="white"
235-
primary={true}
236-
value="Apply"
237-
width="120px"
238-
onClick={() => this.apply()}
239-
/>
213+
<div className={styles.btnFlex}>
214+
<Button
215+
color="white"
216+
value="Save"
217+
width="120px"
218+
onClick={() => this.setState({ confirmName: true })}
219+
/>
220+
<Button
221+
color="white"
222+
value="Clear"
223+
disabled={this.state.filters.size === 0}
224+
width="120px"
225+
onClick={() => this.clear()}
226+
/>
227+
</div>
228+
<div className={styles.btnFlex}>
229+
<Button
230+
color="white"
231+
value="Add"
232+
disabled={Object.keys(available).length === 0}
233+
width="120px"
234+
onClick={() => this.addRow()}
235+
/>
236+
<Button
237+
color="white"
238+
primary={true}
239+
value="Apply"
240+
width="120px"
241+
onClick={() => this.apply()}
242+
/>
243+
</div>
240244
</div>
241245
)}
242246
</div>

src/components/BrowserFilter/BrowserFilter.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@
9999

100100
.footer {
101101
background: rgba(0,0,0,0.2);
102-
padding: 11px 0;
102+
padding: 11px 16px;
103103
text-align: center;
104-
104+
display: flex;
105+
justify-content: space-between;
105106
> button {
106107
margin-right: 10px;
107108

@@ -157,3 +158,8 @@
157158
display: flex;
158159
align-items: center;
159160
}
161+
162+
.btnFlex{
163+
display: flex;
164+
gap: 12px;
165+
}

0 commit comments

Comments
 (0)