Skip to content

Commit d38d7b8

Browse files
authored
fix(ui): broken buttons in the bulk upload drawer (#8926)
Fixes the mobile bottom interface and the arrow buttons in the actions at the top. Before: ![image](https://github.com/user-attachments/assets/26902eb0-5d1a-480d-b6f5-c36a800a6bff) After: ![image](https://github.com/user-attachments/assets/7837684c-37a7-4b2e-a875-47972cf1671f)
1 parent 01ccbd4 commit d38d7b8

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

packages/ui/src/elements/BulkUpload/ActionsBar/index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
width: calc(var(--base) * 1.2);
3434
height: calc(var(--base) * 1.2);
3535

36+
svg {
37+
max-width: 1rem;
38+
}
39+
3640
&:hover {
3741
background-color: var(--theme-elevation-200);
3842
}

packages/ui/src/elements/BulkUpload/FileSidebar/index.scss

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@
192192
display: none;
193193
margin: 0;
194194
padding-block: 0;
195+
196+
&__text {
197+
display: none;
198+
}
195199
}
196200

197201
&__header__mobileDocActions {
@@ -245,7 +249,17 @@
245249

246250
&__headerTopRow {
247251
border-top: 1px solid var(--theme-border-color);
248-
padding-block: calc(var(--base) * 0.8);
252+
padding-block: 0 calc(var(--base) * 0.8) 0;
253+
}
254+
255+
&__header__text {
256+
display: none;
257+
}
258+
259+
&__header__actions {
260+
flex-grow: 2;
261+
display: flex;
262+
justify-content: flex-end;
249263
}
250264

251265
&__header__mobileDocActions {
@@ -268,7 +282,31 @@
268282

269283
&__toggler {
270284
padding-right: 0;
271-
display: block;
285+
padding-left: 0;
286+
padding-top: calc(var(--base) * 0.8);
287+
padding-bottom: calc(var(--base) * 0.8);
288+
display: flex;
289+
justify-content: flex-end;
290+
flex-grow: 1;
291+
292+
.btn__label {
293+
width: 100%;
294+
display: flex;
295+
align-items: center;
296+
justify-content: space-between;
297+
}
298+
299+
&__text {
300+
display: flex;
301+
}
302+
303+
svg {
304+
max-width: 1.5rem;
305+
}
306+
307+
.btn__content {
308+
width: 100%;
309+
}
272310
}
273311

274312
.btn {

packages/ui/src/elements/BulkUpload/FileSidebar/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ export function FileSidebar() {
9898
className={`${baseClass}__toggler`}
9999
onClick={() => setShowFiles((prev) => !prev)}
100100
>
101+
<span className={`${baseClass}__toggler__label`}>
102+
<strong
103+
title={`${totalFileCount} ${t(totalFileCount > 1 ? 'upload:filesToUpload' : 'upload:fileToUpload')}`}
104+
>
105+
{totalFileCount}{' '}
106+
{t(totalFileCount > 1 ? 'upload:filesToUpload' : 'upload:fileToUpload')}
107+
</strong>
108+
</span>
101109
<ChevronIcon direction={showFiles ? 'down' : 'up'} />
102110
</Button>
103111

0 commit comments

Comments
 (0)