mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-1523 Editor | Fix | There is no empty space at the bottom of the page filled with no content - no possibility to create a new text block (#237)
This commit is contained in:
parent
9e5c06d5a8
commit
197741d26f
6 changed files with 111 additions and 13 deletions
|
@ -175,6 +175,21 @@ fun StubQuote(
|
|||
fields = Block.Fields.empty()
|
||||
)
|
||||
|
||||
fun StubCodeSnippet(
|
||||
text: String = MockDataFactory.randomString(),
|
||||
children: List<Id> = emptyList(),
|
||||
marks: List<Block.Content.Text.Mark> = emptyList()
|
||||
): Block = Block(
|
||||
id = MockDataFactory.randomUuid(),
|
||||
content = StubTextContent(
|
||||
text = text,
|
||||
style = Block.Content.Text.Style.CODE_SNIPPET,
|
||||
marks = marks
|
||||
),
|
||||
children = children,
|
||||
fields = Block.Fields.empty()
|
||||
)
|
||||
|
||||
fun StubCallout(
|
||||
text: String = MockDataFactory.randomString(),
|
||||
children: List<Id> = emptyList(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue