pull/6674/head
Cagatay Civici 2024-10-28 22:28:44 +03:00
parent c9a3d2f450
commit 8a3d364a50
5 changed files with 24 additions and 14 deletions

View File

@ -27,24 +27,22 @@ const theme = ({ dt }) => `
.p-fileupload-content { .p-fileupload-content {
border: 1px solid transparent; border: 1px solid transparent;
position: relative; display: flex;
flex-direction: column;
gap: ${dt('fileupload.content.gap')};
transition: border-color ${dt('fileupload.transition.duration')}; transition: border-color ${dt('fileupload.transition.duration')};
padding: ${dt('fileupload.content.padding')}; padding: ${dt('fileupload.content.padding')};
} }
.p-fileupload-content .p-progressbar { .p-fileupload-content .p-progressbar {
width: 100%; width: 100%;
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
height: ${dt('fileupload.progressbar.height')}; height: ${dt('fileupload.progressbar.height')};
} }
.p-fileupload-file-list { .p-fileupload-file-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: ${dt('fileupload.filelist.gap')};
margin-block-start: 1.125rem;
} }
.p-fileupload-file { .p-fileupload-file {
@ -78,10 +76,6 @@ const theme = ({ dt }) => `
border: 1px dashed ${dt('fileupload.content.highlight.border.color')}; border: 1px dashed ${dt('fileupload.content.highlight.border.color')};
} }
.p-fileupload-advanced .p-message {
margin-block-start: 0;
}
.p-fileupload-basic { .p-fileupload-basic {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

View File

@ -16,7 +16,8 @@ export default {
}, },
content: { content: {
highlightBorderColor: '{primary.color}', highlightBorderColor: '{primary.color}',
padding: '0 1.125rem 1.125rem 1.125rem' padding: '0 1.125rem 1.125rem 1.125rem',
gap: '1rem'
}, },
file: { file: {
padding: '1rem', padding: '1rem',
@ -26,6 +27,9 @@ export default {
gap: '0.5rem' gap: '0.5rem'
} }
}, },
fileList: {
gap: '0.5rem'
},
progressbar: { progressbar: {
height: '0.25rem' height: '0.25rem'
}, },

View File

@ -15,7 +15,8 @@ export default {
}, },
content: { content: {
highlightBorderColor: '{primary.color}', highlightBorderColor: '{primary.color}',
padding: '1.125rem' padding: '1.125rem',
gap: '1rem'
}, },
file: { file: {
padding: '1rem', padding: '1rem',
@ -25,6 +26,9 @@ export default {
gap: '0.5rem' gap: '0.5rem'
} }
}, },
fileList: {
gap: '0.5rem'
},
progressbar: { progressbar: {
height: '0.25rem' height: '0.25rem'
}, },

View File

@ -16,7 +16,8 @@ export default {
}, },
content: { content: {
highlightBorderColor: '{primary.color}', highlightBorderColor: '{primary.color}',
padding: '0 1.25rem 1.25rem 1.25rem' padding: '0 1.25rem 1.25rem 1.25rem',
gap: '1rem'
}, },
file: { file: {
padding: '1rem', padding: '1rem',
@ -26,6 +27,9 @@ export default {
gap: '0.5rem' gap: '0.5rem'
} }
}, },
fileList: {
gap: '0.5rem'
},
progressbar: { progressbar: {
height: '0.25rem' height: '0.25rem'
}, },

View File

@ -16,7 +16,8 @@ export default {
}, },
content: { content: {
highlightBorderColor: '{primary.color}', highlightBorderColor: '{primary.color}',
padding: '0 1.125rem 1.125rem 1.125rem' padding: '0 1.125rem 1.125rem 1.125rem',
gap: '1rem'
}, },
file: { file: {
padding: '1rem', padding: '1rem',
@ -26,6 +27,9 @@ export default {
gap: '0.5rem' gap: '0.5rem'
} }
}, },
fileList: {
gap: '0.5rem'
},
progressbar: { progressbar: {
height: '0.25rem' height: '0.25rem'
}, },