Skip to content

Commit

Permalink
feat: 新增 css 限制 dropdown 最大高度
Browse files Browse the repository at this point in the history
Signed-off-by: wyttime04 <vanessa80332@gmail.com>
  • Loading branch information
wyttime04 committed May 13, 2024
1 parent bc9a377 commit 6eb592e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from "react";
import SummerNote2 from "./SummerNote";
import SummerNote from "./SummerNote";
import "./SummerNote.css";
import rtf2html from "../lib/trf2html";
// import required codes
// console.log(SummerNote)
Expand Down
13 changes: 13 additions & 0 deletions src/components/SummerNote.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.note-editor .note-toolbar .note-dropdown-menu.dropdown-fontname,
.note-editor .note-toolbar .note-dropdown-menu.dropdown-fontsize,
.note-editor .note-toolbar .note-dropdown-menu.dropdown-style,
.note-editor .note-toolbar .note-dropdown-menu.dropdown-list-style,
.note-editor .note-toolbar .note-dropdown-menu.dropdown-custom-style-list {
max-height: max(60vh, 200px);
overflow-y: auto;
}

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette .note-color-reset,
.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette .note-color-select {
margin: 3px 0;
}

0 comments on commit 6eb592e

Please sign in to comment.