@use "../../../styles/mixins"; .root { display: flex; align-items: center; margin-left: auto; cursor: var(--custom-cursor, default); flex-direction: row-reverse; background: var(--color-background); :global { .Button { margin-left: 0.25rem; &.tiny { margin-right: 0.625rem; } } } :global(body.no-page-transitions) & { :global(.ripple-container) { display: none; } transition: none !important; } > :global(.Button) { flex-shrink: 0; } } .mini { @media (min-width: 1276px) { transform: translate3d(0, 0, 0); transition: opacity 0.15s ease, transform var(--layer-transition); :global(body.no-right-column-animations) & { transition: opacity 0.15s ease; } :global(#Main.right-column-open) & { transform: translate3d(calc(var(--right-column-width) * -1), 0, 0); } } } .fullWidth { @include mixins.header-pane; height: 3.5rem; .pinnedMessage { margin-top: 0; margin-bottom: 0; flex: 1; } .messageText { max-width: none; } } .loading { --spinner-size: 1.5rem; } .pinListIcon { position: absolute; transition: 0.25s ease-in-out opacity, 0.25s ease-in-out transform; } .pinListIconHidden { opacity: 0; transform: scale(0.6); } .pinnedMessage { display: flex; flex-shrink: 1; margin-top: -0.25rem; margin-bottom: -0.25rem; padding: 0.25rem; padding-left: 0.375rem; border-radius: var(--border-radius-messages-small); position: relative; overflow: hidden; cursor: var(--custom-cursor, pointer); align-items: center; &:hover:not(.no-hover) { background-color: var(--color-interactive-element-hover); } } .messageTextTransition { height: 1.125rem; width: 100%; overflow: hidden; } .messageText { overflow: hidden; margin-inline-start: 0.375rem; margin-top: 0.125rem; max-width: 15rem; min-width: 15rem; flex-grow: 1; transition: 0.25s ease-in-out transform; &.withMedia { transform: translateX(2.625rem); margin-right: 2.625rem; max-width: calc(15rem - 2.625rem); min-width: calc(15rem - 2.625rem); &[dir="rtl"] { transform: translateX(-0.25rem); } } :global(.emoji-small) { width: 1rem; height: 1rem; } @media (min-width: 1440px) and (max-width: 1500px) { max-width: 14rem; } } .title { font-weight: var(--font-weight-medium); font-size: 0.875rem; line-height: 1rem; height: 1rem; color: var(--color-primary); margin-bottom: 0.125rem; white-space: pre; text-align: initial; :global(body.is-ios) & { font-size: 0.9375rem; } } .summary { font-size: 0.875rem; line-height: 1.125rem; height: 1.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; --custom-emoji-size: 1.125rem; :global(body.is-ios) & { font-size: 0.9375rem; } } .inlineButton, .inlineButton:global(.Button.tiny) { display: block; width: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 1.5rem; padding: 0 0.75rem; font-weight: var(--font-weight-medium); text-transform: none; height: 2rem; max-width: 10rem; flex-shrink: 1; } .pictogramTransition { position: absolute; width: 2.25rem !important; height: 2.25rem; margin-inline-start: 0.5rem; margin-top: 0.125rem; overflow: hidden; } .pinnedThumb { width: 100%; height: 100%; flex-shrink: 0; border-radius: 0.25rem; overflow: hidden; & + .messageText { max-width: 12rem; } } .pinnedThumbImage { width: 100%; height: 100%; object-fit: cover; } @media (max-width: 600px) { .pinnedMessage { flex-grow: 1; padding-top: 0; padding-bottom: 0; max-width: unset; margin-top: -0.1875rem; &::before { top: 0.125rem; bottom: 0.125rem; } .messageText { max-width: none; } } }