From 1fbc4f7ce13b8df6fec8b51daa6bce30e69808f6 Mon Sep 17 00:00:00 2001 From: Haruka <96925398+nakoyasha@users.noreply.github.com> Date: Mon, 11 Mar 2024 17:19:35 +0200 Subject: [PATCH] fix(ServerProfile): crop banner to prevent overflow (#2250) --- src/plugins/serverProfile/styles.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/serverProfile/styles.css b/src/plugins/serverProfile/styles.css index 87487ecb..8c88e4f4 100644 --- a/src/plugins/serverProfile/styles.css +++ b/src/plugins/serverProfile/styles.css @@ -4,8 +4,13 @@ } .vc-gp-banner { - width: 100%; cursor: pointer; + aspect-ratio: auto 240 / 135; + height: 334px; + width: 100%; + object-fit: cover; + overflow: clip; + overflow-clip-margin: content-box; } .vc-gp-header {