Minor update to CSS and functionality

This commit is contained in:
Anoop 2021-10-20 14:27:31 +00:00
parent 1911f8a5c8
commit c39fa80746
3 changed files with 7 additions and 6 deletions

View File

@ -77,6 +77,10 @@ export default class NewsGlanceWebPart extends BaseClientSideWebPart<INewsGlance
let element: any;
if (this.width < 400) {
this.sentences = this.sentences.map(sentence => {
return sentence.length > 100 ? `${sentence.slice(0, 100)}...` : sentence;
});
element = React.createElement(
NewsGlanceSmall,
{

View File

@ -25,13 +25,12 @@
}
.leftItem {
max-width: 150px;
object-fit: contain;
align-self: flex-start;
max-width: 200px;
flex: 1;
}
.rightItem {
flex: 1 1 auto;
flex: 2;
}
.articleImage {

View File

@ -8,10 +8,8 @@
.carouselItem {
background-color: $ms-color-themeDark;
// display: flex;
min-height: 150px;
height: 98%;
// justify-content: center;
}
.carouselDotList {