From: Alexander Ebert Date: Tue, 22 Aug 2023 08:28:19 +0000 (+0200) Subject: Force unfurled URLs into separate rows X-Git-Tag: 6.0.0_Beta_2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62d94aea8f15d606d2ce157fb611df02f649a007;p=GitHub%2FWoltLab%2FWCF.git Force unfurled URLs into separate rows --- diff --git a/com.woltlab.wcf/templates/unfurlUrl.tpl b/com.woltlab.wcf/templates/unfurlUrl.tpl index 80cfae04d3..4b9805ee43 100644 --- a/com.woltlab.wcf/templates/unfurlUrl.tpl +++ b/com.woltlab.wcf/templates/unfurlUrl.tpl @@ -2,17 +2,19 @@ {if $object->isPlainUrl()} url isUgc=$enableUgc}>{$object->title} {else} -
- {if !$object->getImageUrl()|empty} - - {/if} -
- url appendClassname=false isUgc=$enableUgc}>{$object->title} -
{$object->description}
-
{$object->getHost()}
+
+
+ {if !$object->getImageUrl()|empty} + + {/if} +
+ url appendClassname=false isUgc=$enableUgc}>{$object->title} +
{$object->description}
+
{$object->getHost()}
+
{/if} diff --git a/wcfsetup/install/files/acp/templates/unfurlUrl.tpl b/wcfsetup/install/files/acp/templates/unfurlUrl.tpl index 80cfae04d3..4b9805ee43 100644 --- a/wcfsetup/install/files/acp/templates/unfurlUrl.tpl +++ b/wcfsetup/install/files/acp/templates/unfurlUrl.tpl @@ -2,17 +2,19 @@ {if $object->isPlainUrl()} url isUgc=$enableUgc}>{$object->title} {else} -
- {if !$object->getImageUrl()|empty} - - {/if} -
- url appendClassname=false isUgc=$enableUgc}>{$object->title} -
{$object->description}
-
{$object->getHost()}
+
+
+ {if !$object->getImageUrl()|empty} + + {/if} +
+ url appendClassname=false isUgc=$enableUgc}>{$object->title} +
{$object->description}
+
{$object->getHost()}
+
{/if} diff --git a/wcfsetup/install/files/style/ui/unfurlUrl.scss b/wcfsetup/install/files/style/ui/unfurlUrl.scss index 2373daa7f3..09a3802920 100644 --- a/wcfsetup/install/files/style/ui/unfurlUrl.scss +++ b/wcfsetup/install/files/style/ui/unfurlUrl.scss @@ -1,3 +1,7 @@ +.unfurlUrlCardContainer { + margin: 1em 0 0 0; +} + .unfurlUrlCard { background-color: var(--wcfContentBackground); border-radius: 3px; @@ -6,7 +10,6 @@ 0 1px 2px rgba(0, 0, 0, 0.24); color: var(--wcfContentText); display: inline-block; - margin: 1em 0 0 0; max-width: 100%; overflow: hidden; position: relative;