mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-09 09:34:59 +09:00
Editor | Fix | Objects where there is a file block with embedded pdf fail to render (#2037)
This commit is contained in:
parent
8b733ed30b
commit
9bc31a8c6b
2 changed files with 12 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
### Fixes & tech 🚒
|
||||
|
||||
* Editor | Failing to render objects containing at least one file block with embedded pdf (#2037)
|
||||
* Editor | When trying to set a link to an object or to a web page for a text selection, the dedicated screen should not block the editor when the bottom sheet is hidden by swiping down (#2036)
|
||||
|
||||
## Version 0.5.0
|
||||
|
|
|
@ -976,6 +976,17 @@ class DefaultBlockViewRenderer(
|
|||
selection = selection
|
||||
)
|
||||
)
|
||||
Content.File.Type.PDF -> content.toFileView(
|
||||
id = block.id,
|
||||
urlBuilder = urlBuilder,
|
||||
indent = indent,
|
||||
mode = if (mode == EditorMode.Edit) BlockView.Mode.EDIT else BlockView.Mode.READ,
|
||||
isSelected = checkIfSelected(
|
||||
mode = mode,
|
||||
block = block,
|
||||
selection = selection
|
||||
)
|
||||
)
|
||||
Content.File.Type.NONE -> content.toFileView(
|
||||
id = block.id,
|
||||
urlBuilder = urlBuilder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue