Просмотр исходного кода

Ticket #3783 - Prose in comments. Full width in some cases.

AntonLV 4 лет назад
Родитель
Сommit
f2dc86ec03

+ 1 - 1
modules/base/profile/template/entry-text.html

@@ -1 +1 @@
-<div class="bx-base-profile-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img bx-def-vanilla-html prose dark:prose-invert">__entry_text__</div>
+<div class="bx-base-profile-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img bx-def-vanilla-html prose dark:prose-invert max-w-none">__entry_text__</div>

+ 5 - 1
modules/boonex/artificer/data/template/system/css/default.less

@@ -15,7 +15,11 @@
     margin-left: auto;
     margin-left: auto;
     margin-right: auto;
     margin-right: auto;
 }
 }
-
+.bx-layout-column-thin .bx-def-vanilla-html,
+.bx-layout-column-half .bx-def-vanilla-html,
+.bx-layout-column-wide .bx-def-vanilla-html {
+    max-width: none;
+}
 .bx-def-vanilla-html.bx-def-constraint-pre pre {
 .bx-def-vanilla-html.bx-def-constraint-pre pre {
     max-width: none;
     max-width: none;
     overflow: auto;
     overflow: auto;

+ 1 - 1
modules/boonex/photos/template/entry-text.html

@@ -1 +1 @@
-<div class="bx-base-profile-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img bx-def-vanilla-html prose dark:prose-invert">__entry_text__</div>
+<div class="bx-base-text-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img bx-def-vanilla-html prose dark:prose-invert">__entry_text__</div>

+ 1 - 1
template/comment_content.html

@@ -1,4 +1,4 @@
-<div class="__style_prefix__-body mt-2 text-sm font-normal">__text__<bx_if:show_more><span class="__style_prefix__-body-see-more">... <a class="bx-def-font-small" href="javascript:void(0)" onclick="__js_object__.showMore(this);"><bx_text:_see_more /></a></span><span style="display:none;"> __text_more__</span></bx_if:show_more></div>
+<div class="__style_prefix__-body mt-2 bx-def-vanilla-html prose prose-sm dark:prose-invert max-w-none">__text__<bx_if:show_more><span class="__style_prefix__-body-see-more">... <a class="bx-def-font-small" href="javascript:void(0)" onclick="__js_object__.showMore(this);"><bx_text:_see_more /></a></span><span style="display:none;"> __text_more__</span></bx_if:show_more></div>
 <bx_if:show_attached>
 <bx_if:show_attached>
     <div class="__style_prefix__-attached bx-clearfix -mx-1 -mb-1">__attached__</div>
     <div class="__style_prefix__-attached bx-clearfix -mx-1 -mb-1">__attached__</div>
 </bx_if:show_attached>
 </bx_if:show_attached>

+ 5 - 1
template/css/default.less

@@ -490,7 +490,11 @@ h3,
     margin-left: auto;
     margin-left: auto;
     margin-right: auto;
     margin-right: auto;
 }
 }
-
+.bx-layout-column-thin .bx-def-vanilla-html,
+.bx-layout-column-half .bx-def-vanilla-html,
+.bx-layout-column-wide .bx-def-vanilla-html {
+    max-width: none;
+}
 .bx-def-vanilla-html.bx-def-constraint-pre pre {
 .bx-def-vanilla-html.bx-def-constraint-pre pre {
     max-width: none;
     max-width: none;
     overflow: auto;
     overflow: auto;