anytype-ts icon indicating copy to clipboard operation
anytype-ts copied to clipboard

Replace width to translate

Open LavaCxx opened this issue 1 year ago • 3 comments
trafficstars


  • [x] I understand that contributing to this repository will require me to agree with the CLA

Description

Using translate to replace the original left and width animations reduces the performance cost of page reflows.

The modified code should allow for the removal of some width-related sections, but I'm not certain which ones are essential.

What type of PR is this? (check all applicable)

  • [ ] 🍕 Feature
  • [ ] 🐛 Bug Fix
  • [ ] 📝 Documentation Update
  • [x] 🎨 Style
  • [ ] 🧑‍💻 Code Refactor
  • [x] 🔥 Performance Improvements
  • [ ] ✅ Test
  • [ ] 🤖 Build
  • [ ] 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

image

Spaces & widgets

Only widgets

Added tests?

  • [ ] 👍 yes
  • [ ] 🙅 no, because they aren't needed
  • [x] 🙋 no, because I need help

Added to documentation?

  • [ ] 📜 README.md
  • [ ] 📓 tech-docs
  • [x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

LavaCxx avatar Aug 25 '24 15:08 LavaCxx

I think I can't approve this unfortunately as this was a design decision, but I will ask.

ra3orblade avatar Aug 25 '24 15:08 ra3orblade

I think I can't approve this unfortunately as this was a design decision, but I will ask.

Design decision? Can you elaborate a little?

haron-IV avatar Nov 05 '24 12:11 haron-IV

The main problem with changing width animation to translate is that right now there is common code that controls the resize of the sidebar, page resize and elements animation, splitting this code into show/hide and resize may be done but it will complicate things much more and we do not have time at the moment for this change. Maybe it will be reviewed one more time with the introduction of the right panel. By design decision I meant that we have discussed it with designers.

ra3orblade avatar Nov 12 '24 12:11 ra3orblade