mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Cutting down on stories that are too wide.
This commit is contained in:
parent
b7e28b238c
commit
6a109ebd97
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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(' ', ' ');
|
||||
|
||||
return _.string.prune(_.string.trim(content), length || 150, "...");
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue