@4399ywkf/editor 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35642,6 +35642,28 @@ ${isDark ? `:root {
35642
35642
  width: 230px;
35643
35643
  box-sizing: border-box;
35644
35644
 
35645
+ /* 卡片是 align-items: center 的纵向 flex,body 不拉满就按内容宽度居中,内容一宽就两边溢出 */
35646
+ > .tiptap-card-body {
35647
+ align-self: stretch;
35648
+ }
35649
+
35650
+ /* 一行 8 个要塞进 216px(230 - 边框 - 内边距):通用按钮 min-width 32px 会撑到 282px,色块改 24px、按列均分 */
35651
+ .tiptap-card-item-group > [data-slot="tiptap-button-group"] {
35652
+ display: grid;
35653
+ grid-template-columns: repeat(8, 1fr);
35654
+ justify-items: center;
35655
+ width: 100%;
35656
+ gap: 0;
35657
+ }
35658
+
35659
+ .tiptap-card-item-group > [data-slot="tiptap-button-group"] > [data-slot="tiptap-button-group"] > .tiptap-button {
35660
+ min-width: 0;
35661
+ width: 24px;
35662
+ height: 24px;
35663
+ padding: 0;
35664
+ justify-content: center;
35665
+ }
35666
+
35645
35667
  .tt-text-color-panel__reset {
35646
35668
  width: 100%;
35647
35669
  justify-content: center;