mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
refactor: cover node widget code (#2899)
* chore: change initial cover type's name to none * chore: refactor cover node widget * chore: use a constant instead of magic value * fix: make the size of icon hover effect smaller * chore: improve appearance of selected color * test: add cover integration tests * fix: inner ring of selected color in dark mode * refactor: cover node to document header node * test: simplify tests * chore: rename files
This commit is contained in:
parent
a3e09f6021
commit
7f74fd6149
17 changed files with 865 additions and 672 deletions
|
@ -123,7 +123,7 @@ class _DocumentPageState extends State<DocumentPage> {
|
|||
return const Placeholder();
|
||||
}
|
||||
final page = editorState!.document.root;
|
||||
return CoverImageNodeWidget(
|
||||
return DocumentHeaderNodeWidget(
|
||||
node: page,
|
||||
editorState: editorState!,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue