mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 21:05:52 +08:00
feat: modify recommend page's card width separately (#1771)
* feat: modify recommend card width setting separately
This commit is contained in:
@@ -208,6 +208,7 @@ abstract class SettingBoxKey {
|
||||
enableSingleRow = 'enableSingleRow',
|
||||
displayMode = 'displayMode',
|
||||
smallCardWidth = 'smallCardWidth',
|
||||
recommendCardWidth = 'recommendCardWidth',
|
||||
dynamicsWaterfallFlow = 'dynamicsWaterfallFlow',
|
||||
upPanelPosition = 'upPanelPosition',
|
||||
dynamicsShowAllFollowedUp = 'dynamicsShowAllFollowedUp',
|
||||
|
||||
@@ -172,6 +172,9 @@ abstract class Pref {
|
||||
static double get smallCardWidth =>
|
||||
_setting.get(SettingBoxKey.smallCardWidth, defaultValue: 240.0);
|
||||
|
||||
static double get recommendCardWidth =>
|
||||
_setting.get(SettingBoxKey.recommendCardWidth, defaultValue: 240.0);
|
||||
|
||||
static UpPanelPosition get upPanelPosition =>
|
||||
UpPanelPosition.values[_setting.get(
|
||||
SettingBoxKey.upPanelPosition,
|
||||
|
||||
Reference in New Issue
Block a user