(search) Change layout balance when feeds/samples are present

This commit is contained in:
Viktor Lofgren 2023-12-28 13:16:10 +01:00
parent 5d1b7da728
commit c7af40c368

View File

@ -250,6 +250,12 @@ public class SearchSiteInfoService {
if (similar.size() < 25) {
return "lopsided";
}
else if (!feed.items().isEmpty()) {
return "lopsided";
}
else if (!samples.isEmpty()) {
return "lopsided";
}
else {
return "balanced";
}