Cutting down on stories that are too wide.

This commit is contained in:
Samuel Clay 2021-01-18 20:51:34 -05:00
parent b7e28b238c
commit 6a109ebd97
2 changed files with 6 additions and 2 deletions

View file

@ -5290,10 +5290,13 @@ form.opml_import_form input {
max-width: 1200px;
display: flex;
flex-direction: row;
flex-flow: row wrap;
flex-flow: row nowrap;
position: relative;
}
@media screen and (max-width: 1100px) {
.NB-splash-modules {
flex-flow: row wrap;
}
.NB-splash-modules .NB-modules-center,
.NB-splash-modules .NB-account-wide {
flex: 1 1 auto;

View file

@ -51,7 +51,8 @@ NEWSBLUR.Models.Story = Backbone.Model.extend({
// First do a naive strip, which is faster than rendering which makes network calls
content = content && content.replace(/<(?:.|\n)*?>/gm, '');
content = content && Inflector.stripTags(content);
content = content && content.replace('&nbsp;', ' ');
return _.string.prune(_.string.trim(content), length || 150, "...");
},