Skip to content

Commit

Permalink
Fixed #6663, Fixed #6664
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Oct 28, 2024
1 parent c9a3d2f commit 8a3d364
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
14 changes: 4 additions & 10 deletions packages/primevue/src/fileupload/style/FileUploadStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,22 @@ const theme = ({ dt }) => `
.p-fileupload-content {
border: 1px solid transparent;
position: relative;
display: flex;
flex-direction: column;
gap: ${dt('fileupload.content.gap')};
transition: border-color ${dt('fileupload.transition.duration')};
padding: ${dt('fileupload.content.padding')};
}
.p-fileupload-content .p-progressbar {
width: 100%;
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
height: ${dt('fileupload.progressbar.height')};
}
.p-fileupload-file-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-block-start: 1.125rem;
gap: ${dt('fileupload.filelist.gap')};
}
.p-fileupload-file {
Expand Down Expand Up @@ -78,10 +76,6 @@ const theme = ({ dt }) => `
border: 1px dashed ${dt('fileupload.content.highlight.border.color')};
}
.p-fileupload-advanced .p-message {
margin-block-start: 0;
}
.p-fileupload-basic {
display: flex;
flex-wrap: wrap;
Expand Down
6 changes: 5 additions & 1 deletion packages/themes/src/presets/aura/fileupload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default {
},
content: {
highlightBorderColor: '{primary.color}',
padding: '0 1.125rem 1.125rem 1.125rem'
padding: '0 1.125rem 1.125rem 1.125rem',
gap: '1rem'
},
file: {
padding: '1rem',
Expand All @@ -26,6 +27,9 @@ export default {
gap: '0.5rem'
}
},
fileList: {
gap: '0.5rem'
},
progressbar: {
height: '0.25rem'
},
Expand Down
6 changes: 5 additions & 1 deletion packages/themes/src/presets/lara/fileupload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default {
},
content: {
highlightBorderColor: '{primary.color}',
padding: '1.125rem'
padding: '1.125rem',
gap: '1rem'
},
file: {
padding: '1rem',
Expand All @@ -25,6 +26,9 @@ export default {
gap: '0.5rem'
}
},
fileList: {
gap: '0.5rem'
},
progressbar: {
height: '0.25rem'
},
Expand Down
6 changes: 5 additions & 1 deletion packages/themes/src/presets/material/fileupload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default {
},
content: {
highlightBorderColor: '{primary.color}',
padding: '0 1.25rem 1.25rem 1.25rem'
padding: '0 1.25rem 1.25rem 1.25rem',
gap: '1rem'
},
file: {
padding: '1rem',
Expand All @@ -26,6 +27,9 @@ export default {
gap: '0.5rem'
}
},
fileList: {
gap: '0.5rem'
},
progressbar: {
height: '0.25rem'
},
Expand Down
6 changes: 5 additions & 1 deletion packages/themes/src/presets/nora/fileupload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default {
},
content: {
highlightBorderColor: '{primary.color}',
padding: '0 1.125rem 1.125rem 1.125rem'
padding: '0 1.125rem 1.125rem 1.125rem',
gap: '1rem'
},
file: {
padding: '1rem',
Expand All @@ -26,6 +27,9 @@ export default {
gap: '0.5rem'
}
},
fileList: {
gap: '0.5rem'
},
progressbar: {
height: '0.25rem'
},
Expand Down

0 comments on commit 8a3d364

Please sign in to comment.