comand-component-library 3.3.81 → 3.3.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,7 @@
40
40
 
41
41
  <!-- begin default header with slot -->
42
42
  <template v-else>
43
- <div v-if="useSlots?.includes('header') ||cmdHeadline?.headlineText" class="box-header">
43
+ <div v-if="useSlots?.includes('header') || cmdHeadline?.headlineText" class="box-header">
44
44
  <!-- begin slot 'header' -->
45
45
  <slot v-if="useSlots?.includes('header')" name="header"></slot>
46
46
  <!-- end slot 'header' -->
@@ -56,28 +56,30 @@
56
56
  <!-- end default header with slot -->
57
57
 
58
58
  <!-- begin box-body -->
59
- <div v-show="open" :class="['box-body', {'default-padding': useDefaultPadding}]" aria-expanded="true" role="article">
60
- <!-- begin slot 'body' -->
61
- <slot v-if="useSlots?.includes('body')" name="body">
62
- <transition-group :name="toggleTransition">
63
- <p :class="{
64
- 'cutoff-text': cutoffTextLines > 0,
65
- 'fade-last-line': fadeLastLine && !showCutOffText,
66
- 'show-text' : showCutOffText
67
- }">
68
- {{ textBody }}
69
- </p>
70
- <a v-if="cutoffTextLines > 0" href="#" @click.prevent="toggleCutOffText">
71
- {{ showCutOffText ? getMessage("cmdbox.contentbox.collapse_text") : getMessage("cmdbox.contentbox.expand_text") }}
72
- </a>
73
- </transition-group>
74
- </slot>
75
- <!-- end slot 'body' -->
59
+ <div v-show="open" class="box-body" aria-expanded="true" role="article">
60
+ <div v-if="useSlots?.includes('body')" :class="{'default-padding': useDefaultPadding}">
61
+ <!-- begin slot 'body' -->
62
+ <slot name="body">
63
+ <transition-group :name="toggleTransition">
64
+ <p :class="{
65
+ 'cutoff-text': cutoffTextLines > 0,
66
+ 'fade-last-line': fadeLastLine && !showCutOffText,
67
+ 'show-text' : showCutOffText
68
+ }">
69
+ {{ textBody }}
70
+ </p>
71
+ <a v-if="cutoffTextLines > 0" href="#" @click.prevent="toggleCutOffText">
72
+ {{ showCutOffText ? getMessage("cmdbox.contentbox.collapse_text") : getMessage("cmdbox.contentbox.expand_text") }}
73
+ </a>
74
+ </transition-group>
75
+ </slot>
76
+ <!-- end slot 'body' -->
77
+ </div>
76
78
 
77
79
  <template v-else>
78
80
  <img v-if="image" :src="image.src" :alt="image.altText"/>
79
81
 
80
- <div class="text-wrapper">
82
+ <div :class="{'default-padding': useDefaultPadding}">
81
83
  <!-- begin CmdHeadline -->
82
84
  <CmdHeadline
83
85
  v-if="cmdHeadline?.headlineText && repeatHeadlineInBoxBody"
@@ -454,10 +456,6 @@ export default {
454
456
  }
455
457
  }
456
458
 
457
- .box-body {
458
- padding: var(--default-padding);
459
- }
460
-
461
459
  // boyType === 'content'
462
460
  &.content {
463
461
  > * {
@@ -502,11 +500,6 @@ export default {
502
500
 
503
501
  .box-body {
504
502
  flex-grow: 1;
505
- padding: 0;
506
-
507
- .text-wrapper {
508
- padding: var(--default-padding);
509
- }
510
503
 
511
504
  p.cutoff-text {
512
505
  padding: var(--default-padding);