Fixing folders disappearing on search.

This commit is contained in:
Samuel Clay 2024-11-24 13:58:22 -08:00
parent 4cfb64b6bd
commit a49a2f6ca3
4 changed files with 7 additions and 4 deletions

View file

@ -34,7 +34,7 @@ ul.segmented-control {
color: #61635e; color: #61635e;
text-shadow: 0 1px 0 rgba(255, 255, 255, .4); text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
transition: 0.14s ease-in-out background; transition: 0.14s ease-in-out background;
flex: 1 1 0; flex: 1 1 auto;
white-space: nowrap; white-space: nowrap;
} }

View file

@ -5786,6 +5786,7 @@ body {
line-height: 24px; line-height: 24px;
padding-left: 12px; padding-left: 12px;
padding-right: 12px; padding-right: 12px;
white-space: normal;
} }
.NB-sideoption-discover .segmented-control-item a { .NB-sideoption-discover .segmented-control-item a {

View file

@ -383,8 +383,8 @@ NEWSBLUR.Collections.Folders = Backbone.Collection.extend({
var feedA = modelA.feed; var feedA = modelA.feed;
var feedB = modelB.feed; var feedB = modelB.feed;
if (!feedA || !feedB) { if (!feedA || !feedB || !feedA.get('feed_title') || !feedB.get('feed_title')) {
return !feedA ? 1 : -1; return !feedA || !feedA.get('feed_title') ? 1 : -1;
} }
var remove_articles = function (str) { var remove_articles = function (str) {

View file

@ -111,10 +111,12 @@ MAX_EMAILS_SENT_PER_DAY_PER_USER = 20 # Most are story notifications
# =========================== # ===========================
SHELL_PLUS_IMPORTS = [ SHELL_PLUS_IMPORTS = [
"from apps.search.models import SearchFeed, SearchStory", "from apps.search.models import SearchFeed, SearchStory, DiscoverStory",
"import redis", "import redis",
"import datetime", "import datetime",
"from pprint import pprint", "from pprint import pprint",
"import requests",
"import feedparser",
] ]
# SHELL_PLUS_PRINT_SQL = True # SHELL_PLUS_PRINT_SQL = True