Skip to content

Commit dea2129

Browse files
committed
Added "Clear all files" button
1 parent 3f6a739 commit dea2129

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/components/App.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export default class App extends PureComponent {
133133
<div className="floating-buttons" id="file-list-actions" data-any={window.stats.total > 0} data-crushed={(window.stats.done > 0 || window.stats.crushing > 0 || window.stats.saving > 0)}>
134134
<div className="summary-text">
135135
{getStatusBar(stats)}
136+
<div className="clear-all" onClick={window.clearAllFiles}>Clear all files</div>
136137
</div>
137138
<div className="buttons">
138139
<div className="button big action--download-all" data-eventstate={window.eventState.saving} onClick={(e) => {

src/css/_page--files.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,24 @@
100100
box-sizing: border-box;
101101
padding: 0 10px 8px;
102102
width: 100%;
103+
display: flex;
104+
align-items: baseline;
105+
justify-content: space-between;
103106

104107
b, strong {
105108
color: var(--color-primary);
106109
font-weight: bold;
107110
}
108111

112+
.clear-all {
113+
color: var(--color-primary);
114+
font-weight: bold;
115+
cursor: pointer;
116+
&:hover {
117+
color: var(--color-secondary);
118+
}
119+
}
120+
109121
}
110122

111123
.action--download-all {

0 commit comments

Comments
 (0)