use config

This commit is contained in:
RickyRister 2024-12-09 23:18:19 -08:00
parent a5d3c52b8f
commit 6da17219e7

View file

@ -265,7 +265,8 @@ void ZoneViewWidget::resizeToZoneContents()
QSizeF maxSize(width, zoneRect.height() + extraHeight + 10);
setMaximumSize(maxSize);
qreal initialZoneHeight = qMin(zoneRect.height(), 500.0);
qreal initialZoneHeight =
qMin(zoneRect.height(), static_cast<qreal>(SettingsCache::instance().getCardViewInitialHeight()));
QSizeF initialSize(width, initialZoneHeight + extraHeight + 10);
resize(initialSize);