/**
 * 富文本生成框可见性修复
 *
 * 资产标签和普通文本共用同一行时，编辑区需要保留自己的绘制层，
 * 同时为底部工具栏留出空间，避免长文本被操作栏覆盖。
 */
.richtext-inline-editor {
  position: relative;
  z-index: 1;
  min-height: 64px;
  padding-bottom: 8px !important;
  overflow: visible !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.richtext-inline-editor [data-node-kind="mention"],
.richtext-inline-editor [data-rich-mention-asset-id] {
  display: inline-flex;
  max-width: 12rem;
  vertical-align: baseline;
  white-space: nowrap;
}

.richtext-inline-editor [data-node-kind="text"] {
  display: inline;
  white-space: pre-wrap;
}
