truncate activity text
This commit is contained in:
parent
2051395e7b
commit
807005e164
|
|
@ -47,6 +47,22 @@
|
||||||
@include widget-shadow;
|
@include widget-shadow;
|
||||||
padding: $medium-spacing;
|
padding: $medium-spacing;
|
||||||
|
|
||||||
|
/* used for text ellipis... somehow https://css-flexbox-text-ellipsis.dinhquangtrung.net/ just does not work */
|
||||||
|
|
||||||
|
max-width: 640px;
|
||||||
|
|
||||||
|
@include desktop {
|
||||||
|
max-width: 1020px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 639px) {
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 401px) {
|
||||||
|
max-width: 320px;
|
||||||
|
}
|
||||||
|
|
||||||
&__module-name {
|
&__module-name {
|
||||||
@include small-text;
|
@include small-text;
|
||||||
color: $color-grey;
|
color: $color-grey;
|
||||||
|
|
@ -69,6 +85,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
$line-height: 50px;
|
$line-height: 50px;
|
||||||
|
|
||||||
|
|
@ -81,11 +98,15 @@
|
||||||
|
|
||||||
&__submission {
|
&__submission {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__title, &__submission {
|
&__title, &__submission {
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
height: $line-height;
|
height: $line-height;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__chevron {
|
&__chevron {
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
};
|
};
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$scrollTo(`#${this.scrollToAssignmentId.replace(/=/g, '')}`, 1000, options);
|
this.$scrollTo(`#${this.scrollToAssignmentId.replace(/=/g, '')}`, 1000, options);
|
||||||
}, 250)
|
}, 250) // unfortunately this timeout is needed as it is hard to tell when everything is rendered
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
@include desktop {
|
@include desktop {
|
||||||
max-width: 100%;
|
max-width: 1024px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue