Merge pull request #31 from NebulousLabs/uploaded-files-overflowing-on-mobile

fixes overflowing of long unbreakable file names on mobile
This commit is contained in:
Peter-Jan Brone 2020-02-20 10:56:34 +01:00 committed by GitHub
commit 8ff073a3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 5 deletions

View File

@ -4,13 +4,18 @@
display: flex; display: flex;
align-items: center; align-items: center;
padding: 20px 0; padding: 20px 0;
flex-wrap: wrap;
} }
.upload-file-icon { .upload-file-icon {
display: none;
@media (min-width: $largebp) {
display: block; display: block;
min-width: 36px; min-width: 36px;
width: 36px; width: 36px;
max-width: 36px; max-width: 36px;
}
} }
.upload-file-text { .upload-file-text {
@ -22,6 +27,7 @@
margin-bottom: 5px; margin-bottom: 5px;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
word-break: break-all;
@media (min-width: $largebp) { @media (min-width: $largebp) {
font-size: 18px; font-size: 18px;
@ -38,7 +44,7 @@
} }
.url { .url {
word-break: break-word; word-break: break-all;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@ -54,6 +60,11 @@
.upload-file-copy { .upload-file-copy {
position: relative; position: relative;
@media (max-width: $largebp) {
flex-basis: 100%;
text-align: right;
}
&:hover { &:hover {
color: $green; color: $green;
} }