Difference in presentation from @object and /link object

Describe the bug
There is a difference in the UI when we reference an object with @ and /link. It seems that @ is missing a space (or the other way around /link has extra space). See attached picture for visual example:

Screen Shot 2022-02-26 at 2.19.11 PM

To Reproduce
Steps to reproduce the behavior:

  1. Create an object and add an icon, here it’s a custom one
  2. Go in any other document/note where there is a text field
  3. Reference the previously created object with @objectname
  4. On the next line reference it again with /link and search for objectname
  5. One should see a visual difference between the two lines in alignment

Expected behavior
Both ways of referencing the object should result in the same behavior and alignment.

System Information:

  • OS: MacOS & iOS
  • Device Manufacturer/Model: M1 Macbook & iPhone
  • Anytype Version: e.g. 0.24 & 0.9.0

Additional context




The Bug
Linked objects with the “Action” layout type, are spaced differently depending on whether the @ linking shortcut or /link (Link to Object) is used:

To Reproduce

  1. Create an object with the “Action” layout type
  2. Open another (or the same) object
  3. Create a text block and using the “Link to Object” command, select the object
  4. Create another text block and using @, select the object
  5. Notice the (slight) difference in spacing

Expected behavior
For the spacing to remain the same (regardless of whether @ or the “Link to Object” command is used)

System Information
OS: Microsoft Windows 10 Home (Version 10.0.19042)
Anytype Version 0.24.0

Thank you for reading, hope you have a great day!


Thanks for the report. I can confirm this behaviour on Linux.

1 Like

Seems like it is not OS dependent as we have reports for MacOS, Windows and Linux. I also confirm that it repro on Mobile (iOS)

1 Like