Empty code boxes partially collapsed the layout
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Apr 2022 09:47:35 +0000 (11:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Apr 2022 09:47:35 +0000 (11:47 +0200)
See https://www.woltlab.com/community/thread/295182-leere-code-box-ist-kaputt/

wcfsetup/install/files/style/bbcode/code.scss

index 81c2f3274b94fc7c9af1d406de0c0d7661bc7095..751aa1e1b6b9be94d4ccd9c9d2a9bcdf45696ec7 100644 (file)
                                > span {
                                        white-space: pre-wrap;
                                        word-break: break-all;
+
+                                       /* Prevent empty lines from collapsing. */
+                                       &:empty {
+                                               display: inline-block;
+                                       }
                                }
 
                                &:target {