feat: Use BackgroundSize in Preview view
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
var bgStyle = $"background: {Model.BackgroundColor ?? "#1a1a2e"};";
|
||||
if (!string.IsNullOrEmpty(Model.BackgroundImage))
|
||||
{
|
||||
bgStyle += $" background-image: url('{Model.BackgroundImage}'); background-size: cover; background-position: center;";
|
||||
bgStyle += $" background-image: url('{Model.BackgroundImage}'); background-size: {Model.BackgroundSize ?? "cover"}; background-position: center; background-repeat: no-repeat;";
|
||||
}
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user