调整合适宽度

This commit is contained in:
BookerLiu
2023-04-04 13:47:08 +08:00
parent b12bbe9183
commit 3654ec393a
2 changed files with 8 additions and 4 deletions

View File

@@ -26,10 +26,10 @@ namespace GeekDesk.Converts
return config.WindowWidth - config.MenuCardWidth;
} else if (WidthTypeEnum.RIGHT_CARD_HALF == type)
{
return (config.WindowWidth - config.MenuCardWidth) * 0.8;
return (config.WindowWidth - config.MenuCardWidth) * 0.618;
} else if (WidthTypeEnum.RIGHT_CARD_HALF_TEXT == type)
{
return (config.WindowWidth - config.MenuCardWidth) * 0.8 - config.ImageWidth - 20;
return (config.WindowWidth - config.MenuCardWidth) * 0.618 - config.ImageWidth - 20;
}
return config.WindowWidth;