fix: Fixes assignee and inbox name spacing issues (#6589)

This commit is contained in:
Sivin Varghese
2023-03-02 22:00:43 +05:30
committed by GitHub
parent a4fc0eef4b
commit a685e065da
6 changed files with 21 additions and 24 deletions

View File

@@ -240,6 +240,11 @@
} }
} }
.assignee-label {
margin-left: 0;
margin-right: var(--space-one);
}
.show-more--button { .show-more--button {
margin: unset; margin: unset;
transform: rotate(180deg); transform: rotate(180deg);
@@ -311,11 +316,6 @@
} }
} }
// Labels
.label {
direction: initial;
}
// Notification panel // Notification panel
.notification-wrap { .notification-wrap {
left: 0; left: 0;

View File

@@ -56,7 +56,7 @@
.conversation--user { .conversation--user {
font-size: var(--font-size-small); font-size: var(--font-size-small);
margin: 0 var(--space-one); margin: 0 var(--space-small);
text-transform: capitalize; text-transform: capitalize;
.label { .label {
@@ -76,7 +76,7 @@
font-weight: var(--font-weight-normal); font-weight: var(--font-weight-normal);
height: var(--space-medium); height: var(--space-medium);
line-height: var(--space-medium); line-height: var(--space-medium);
margin: 0 var(--space-one); margin: 0 var(--space-small);
max-width: 96%; max-width: 96%;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@@ -12,7 +12,7 @@
<a v-else :href="href" :style="anchorStyle">{{ title }}</a> <a v-else :href="href" :style="anchorStyle">{{ title }}</a>
<button <button
v-if="showClose" v-if="showClose"
class="label-close--button " class="label-close--button"
:style="{ color: textColor }" :style="{ color: textColor }"
@click="onClick" @click="onClick"
> >
@@ -108,6 +108,7 @@ export default {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
font-weight: var(--font-weight-medium); font-weight: var(--font-weight-medium);
gap: var(--space-smaller);
margin-right: var(--space-smaller); margin-right: var(--space-smaller);
margin-bottom: var(--space-smaller); margin-bottom: var(--space-smaller);
padding: var(--space-smaller); padding: var(--space-smaller);
@@ -126,9 +127,6 @@ export default {
.label--icon { .label--icon {
cursor: pointer; cursor: pointer;
} }
.label-color-dot {
margin-right: var(--space-smaller);
}
&.small .label--icon, &.small .label--icon,
&.small .close--icon { &.small .close--icon {
@@ -209,7 +207,6 @@ export default {
.label-close--button { .label-close--button {
color: var(--s-800); color: var(--s-800);
margin-bottom: var(--space-minus-micro); margin-bottom: var(--space-minus-micro);
margin-left: var(--space-smaller);
border-radius: var(--border-radius-small); border-radius: var(--border-radius-small);
cursor: pointer; cursor: pointer;
@@ -232,7 +229,6 @@ export default {
width: var(--space-slab); width: var(--space-slab);
height: var(--space-slab); height: var(--space-slab);
border-radius: var(--border-radius-small); border-radius: var(--border-radius-small);
margin-right: var(--space-smaller);
box-shadow: var(--shadow-small); box-shadow: var(--shadow-small);
} }
.label.small .label-color-dot { .label.small .label-color-dot {

View File

@@ -431,6 +431,7 @@ export default {
.assignee-label { .assignee-label {
display: inline-flex; display: inline-flex;
margin-left: var(--space-small);
max-width: 50%; max-width: 50%;
} }
} }

View File

@@ -17,9 +17,7 @@
@click.prevent="$emit('contact-panel-toggle')" @click.prevent="$emit('contact-panel-toggle')"
> >
<h3 class="sub-block-title user--name text-truncate"> <h3 class="sub-block-title user--name text-truncate">
<span class="margin-right-smaller">{{ <span>{{ currentContact.name }}</span>
currentContact.name
}}</span>
<fluent-icon <fluent-icon
v-if="!isHMACVerified" v-if="!isHMACVerified"
v-tooltip="$t('CONVERSATION.UNVERIFIED_SESSION')" v-tooltip="$t('CONVERSATION.UNVERIFIED_SESSION')"
@@ -30,16 +28,12 @@
</h3> </h3>
</woot-button> </woot-button>
<div class="conversation--header--actions text-truncate"> <div class="conversation--header--actions text-truncate">
<inbox-name <inbox-name v-if="hasMultipleInboxes" :inbox="inbox" />
v-if="hasMultipleInboxes" <span v-if="isSnoozed" class="snoozed--display-text">
:inbox="inbox"
class="margin-right-1"
/>
<span v-if="isSnoozed" class="snoozed--display-text margin-right-1">
{{ snoozedDisplayText }} {{ snoozedDisplayText }}
</span> </span>
<woot-button <woot-button
class="user--profile__button margin-right-1" class="user--profile__button"
size="small" size="small"
variant="link" variant="link"
@click="$emit('contact-panel-toggle')" @click="$emit('contact-panel-toggle')"
@@ -220,6 +214,11 @@ export default {
align-items: center; align-items: center;
display: flex; display: flex;
font-size: var(--font-size-mini); font-size: var(--font-size-mini);
gap: var(--space-small);
::v-deep .inbox--name {
margin: 0;
}
.user--profile__button { .user--profile__button {
padding: 0; padding: 0;
@@ -233,5 +232,6 @@ export default {
.hmac-warning__icon { .hmac-warning__icon {
color: var(--y-600); color: var(--y-600);
margin: 0 var(--space-micro);
} }
</style> </style>

View File

@@ -97,7 +97,7 @@ export default {
} }
.label-container { .label-container {
margin: var(--space-micro) var(--space-one) 0; margin: var(--space-micro) var(--space-small) 0;
} }
.labels-wrap { .labels-wrap {