Send View Once Messages

This commit is contained in:
yash-signal
2026-02-25 13:48:45 -06:00
committed by GitHub
parent 1abce3b627
commit f09d582dec
26 changed files with 735 additions and 365 deletions

View File

@@ -47,6 +47,23 @@
overflow: hidden;
word-break: break-word;
&--with-view-once {
position: relative;
display: flex;
align-items: center;
}
&--view-once-active {
.ql-editor {
visibility: hidden;
}
.module-composition-input__input__scroller {
height: 32px;
overflow: hidden;
}
}
// Override Quill styles
.ql-container {
// Inherit global font stack
@@ -78,8 +95,11 @@
&__scroller {
$padding-top: 6px;
position: relative;
padding-block: $padding-top;
padding-inline: 0;
flex: 1;
min-width: 0;
min-height: calc(32px - 2 * $border-size);
max-height: calc(72px - 2 * $border-size);
@@ -452,6 +472,24 @@
width: 18px;
}
}
&__view-once-button {
flex-shrink: 0;
align-self: center;
margin-inline-end: 8px;
margin-inline-start: 4px;
}
&__view-once-placeholder {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
color: light-dark(variables.$color-gray-45, variables.$color-gray-25);
}
}
div.CompositionInput__link-preview {