Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions src/components/Envelope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<NcCheckboxRadioSwitch
type="checkbox"
class="compact-checkbox"
:class="{ 'compact-checkbox--active': selected }"
:model-value="selected"
@update:checked="toggleSelected" />
</div>
Expand Down Expand Up @@ -164,9 +165,9 @@

<span
class="envelope__subtitle__subject"
:class="{ 'one-line': oneLineLayout }"
:class="{ 'one-line': oneLineLayout && !compactMode }"
dir="auto">
<span class="envelope__subtitle__subject__text" :class="{ 'one-line': oneLineLayout, draft }" v-html="subjectForSubtitle" />
<span class="envelope__subtitle__subject__text" :class="{ 'one-line': oneLineLayout && !compactMode, draft }" v-html="subjectForSubtitle" />
</span>
</div>
<div
Expand Down Expand Up @@ -1505,7 +1506,8 @@ export default {
}

.list-item__wrapper--active {
div, :deep(.list-item-content__inner__details__details) {
div:not(.compact-checkbox-wrapper, .compact-checkbox-wrapper *),
:deep(.list-item-content__inner__details__details) {
color: var(--color-primary-element-text) !important;
}
}
Expand Down Expand Up @@ -1686,11 +1688,6 @@ export default {
display: flex;
align-items: center;
height: calc(var(--default-font-size) * var(--default-line-height));

&::after {
content: '\00B7';
margin: 12px;
}
}

.envelope__subtitle__subject__text.one-line {
Expand Down Expand Up @@ -1723,6 +1720,7 @@ export default {
// Needs to be the same height as the check-icon and the avatar to prevent automatic resizing
// and height differences between hover state and normal state
height: calc(var(--default-grid-baseline) * 10);
padding-top: 3px;
}

.check-icon {
Expand All @@ -1739,9 +1737,6 @@ export default {
margin-inline-start: 0;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}

Expand All @@ -1759,13 +1754,11 @@ export default {
.compact-subject-icons {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
margin-inline-end: 4px;
}

.envelope__recipient-row {
display: inline-flex;
display: flex;
align-items: center;
min-width: 0;
}
Expand All @@ -1788,4 +1781,9 @@ export default {
display: none;
}
}
.list-item__wrapper--active :deep(.compact-checkbox .checkbox-radio-switch__content),
.list-item__wrapper.active :deep(.compact-checkbox .checkbox-radio-switch__content) {
background-color: var(--color-primary-element-text) !important;
color: var(--color-primary-element) !important;
}
</style>
Comment thread
GretaD marked this conversation as resolved.
10 changes: 9 additions & 1 deletion src/components/EnvelopeSkeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<!-- Counter and indicator -->
<div
v-if="counterNumber || hasIndicator"
v-show="showAdditionalElements"
:class="{ 'extra--hidden': !showAdditionalElements }"
class="list-item-content__inner__details__extra">
<NcCounterBubble
v-if="counterNumber"
Expand Down Expand Up @@ -553,6 +553,11 @@ export default {
&--bold {
font-weight: 500;
}
.list-item--compact.list-item--multiline & {
white-space: normal;
overflow: visible;
text-overflow: unset;
}
}

&__tags {
Expand Down Expand Up @@ -727,4 +732,7 @@ export default {
height: calc(var(--header-menu-item-height) - 4px);
width: calc(var(--header-menu-item-height) - 4px);
}
.extra--hidden {
visibility: hidden;
}
</style>
Loading