Add support for cover photos in popovers
authorMarcel Werk <burntime@woltlab.com>
Thu, 2 Jan 2025 14:56:10 +0000 (15:56 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 2 Jan 2025 14:56:10 +0000 (15:56 +0100)
wcfsetup/install/files/style/ui/popover.scss

index e529e912179a1fc36f24cf880a5e2bed0e3e04b5..36b693d1a7754e043f4ccd47e7a96e5718f979ea 100644 (file)
@@ -83,7 +83,7 @@
 /* @since 6.1 */
 .popoverContainer {
        --padding: 20px;
-       --maxHeight: 300px;
+       --maxHeight: 400px;
        --maxWidth: 500px;
 
        background-color: var(--wcfContentContainerBackground);
        grid-area: time;
        @include wcfFontSmall;
 }
+
+.popover__coverPhoto {
+       --remove-padding: calc(var(--padding) * -1);
+       margin: var(--remove-padding) var(--remove-padding) 10px;
+}
+
+.popover__coverPhoto__image {
+       object-fit: cover;
+       object-position: center center;
+       height: 150px;
+       width: 100%;
+}