File tree Expand file tree Collapse file tree 3 files changed +22
-13
lines changed
FileDetails/StaticFileDetails Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 33
33
}
34
34
35
35
& __main-detail {
36
- padding : base ( 0.8 ) base ( 1.2 );
36
+ padding : var ( --base ) calc ( var ( --base ) * 1.2 );
37
37
width : auto ;
38
38
flex-grow : 1 ;
39
39
min-width : 280px ;
40
40
max-width : 100% ;
41
41
display : flex ;
42
42
flex-direction : column ;
43
- justify-content : center ;
43
+ justify-content : space-between ;
44
44
align-self : stretch ;
45
- gap : base ( 0.2 );
45
+ gap : calc ( var ( --base ) * 0.2 );
46
46
}
47
47
48
48
& __toggle-more-info {
61
61
62
62
& __sizes {
63
63
margin : 0 ;
64
- padding : base ( 1.5 ) $baseline 0 ;
64
+ padding : calc ( var ( --base ) * 1.5 ) $baseline 0 ;
65
65
list-style : none ;
66
66
display : flex ;
67
67
flex-wrap : wrap ;
68
68
69
69
li {
70
70
width : 50% ;
71
- padding : 0 base ( 0.5 );
71
+ padding : 0 calc ( var ( --base ) * 0.5 );
72
72
margin-bottom : $baseline ;
73
73
}
74
74
}
79
79
80
80
& __file-mutation {
81
81
display : flex ;
82
- margin-top : base ( 0.25 );
82
+ margin-top : calc ( var ( --base ) * 0.25 );
83
83
gap : calc (var (--base ) / 2 );
84
84
}
85
85
88
88
background-color : var (--theme-elevation-150 );
89
89
border : none ;
90
90
border-radius : $style-radius-m ;
91
- padding : base ( 0.25 ) base ( 0.5 );
91
+ padding : calc ( var ( --base ) * 0.25 ) calc ( var ( --base ) * 0.5 );
92
92
93
93
& :hover {
94
94
background-color : var (--theme-elevation-100 );
102
102
103
103
& __sizes {
104
104
display : block ;
105
- padding : $baseline $baseline base ( 0.5 );
105
+ padding : $baseline $baseline calc ( var ( --base ) * 0.5 );
106
106
107
107
li {
108
108
padding : 0 ;
Original file line number Diff line number Diff line change 13
13
14
14
.tooltip.error-message {
15
15
z-index : 3 ;
16
- bottom : calc (100% - #{base ( 0.5 )} );
16
+ bottom : calc (100% - #{calc ( var ( --base ) * 0.5 )} );
17
17
}
18
18
19
19
& __file-selected {
60
60
flex-wrap : wrap ;
61
61
}
62
62
63
+ & __previewSizes ,
64
+ & __edit {
65
+ margin-top : calc (var (--base ) * 1.2 );
66
+ }
67
+
63
68
& __previewDrawer {
64
69
& h2 {
65
- margin : 0 base ( 1 ) 0 0 ;
66
- text-wrap : nowrap ;
70
+ margin : 0 var ( --base ) 0 0 ;
71
+ white-space : nowrap ;
67
72
overflow : hidden ;
68
73
text-overflow : ellipsis ;
69
- max-width : calc (100% - base ( 2 ));
74
+ max-width : calc (100% - calc ( var ( --base ) * 2 ));
70
75
}
71
76
}
72
77
78
83
& __dropzoneContent {
79
84
display : flex ;
80
85
flex-wrap : wrap ;
81
- gap : base ( 0.4 );
86
+ gap : calc ( var ( --base ) * 0.4 );
82
87
justify-content : space-between ;
83
88
width : 100% ;
84
89
}
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export const UploadActions = ({
67
67
< Button
68
68
buttonStyle = "pill"
69
69
className = { `${ baseClass } __previewSizes` }
70
+ margin = { false }
70
71
onClick = { ( ) => {
71
72
openModal ( sizePreviewSlug )
72
73
} }
@@ -79,6 +80,7 @@ export const UploadActions = ({
79
80
< Button
80
81
buttonStyle = "pill"
81
82
className = { `${ baseClass } __edit` }
83
+ margin = { false }
82
84
onClick = { ( ) => {
83
85
openModal ( editDrawerSlug )
84
86
} }
@@ -394,6 +396,7 @@ export const Upload_v4: React.FC<UploadProps_v4> = (props) => {
394
396
setFileUrl ( e . target . value )
395
397
} }
396
398
ref = { urlInputRef }
399
+ title = { fileUrl }
397
400
type = "text"
398
401
value = { fileUrl }
399
402
/>
@@ -435,6 +438,7 @@ export const Upload_v4: React.FC<UploadProps_v4> = (props) => {
435
438
< input
436
439
className = { `${ baseClass } __filename` }
437
440
onChange = { handleFileNameChange }
441
+ title = { filename || value . name }
438
442
type = "text"
439
443
value = { filename || value . name }
440
444
/>
You can’t perform that action at this time.
0 commit comments