fixes overflowing of long unbreakable file names on mobile

This commit is contained in:
Karol Wypchlo 2020-02-19 18:09:30 +01:00
parent a86aeadc5c
commit ad31c3229e
1 changed files with 16 additions and 5 deletions

View File

@ -4,14 +4,19 @@
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 {
display: block; display: block;
@ -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;
} }