2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-17 14:36:45 +00:00

Collapse forum row height in narrow layout.

This commit is contained in:
John Preston
2022-12-01 21:36:26 +04:00
parent c200263f2e
commit f0b8ccbd71
12 changed files with 92 additions and 43 deletions

View File

@@ -48,7 +48,8 @@ public:
not_null<Row*> addByName(Key key);
bool moveToTop(Key key);
void adjustByDate(not_null<Row*> row);
void updateHeight(not_null<Row*> row);
bool updateHeight(Key key, float64 narrowRatio);
bool updateHeights(float64 narrowRatio);
bool remove(Key key, Row *replacedBy = nullptr);
using const_iterator = std::vector<not_null<Row*>>::const_iterator;
@@ -76,6 +77,7 @@ private:
SortMode _sortMode = SortMode();
FilterId _filterId = 0;
float64 _narrowRatio = 0.;
std::vector<not_null<Row*>> _rows;
std::map<Key, std::unique_ptr<Row>> _rowByKey;