Comments (2)
The problem is harder than I thought.
I initially thought it only was a CSS problem, but when I went deeper into the code I discovered a serious bug.
In my screenshot all sub-replies are actually nested within each other, but they are perfectly aligned in the 3rd level, so I would say the issue was fixed, but actually didn't make any changes...
The real problem is that all the sub-replies in my screenshot, were created without refreshing the page, so in the database they all were assigned as the 2nd level reply sub-replies, that is why they appear aligned. The field that is causing the problem is "replicable_id"
When I refresh the page and try to make, for example, another 4th level sub-reply to the 3rd level reply, then it goes to the right place and gets aligned correctly, with the 4th level indentation.
So this error must be fixed before trying to mess with nesting levels, because it could affect the actual stored data, as some sub-replies in the forum, may be currently pointing to wrong parent replies.
from spacedecentral-network.
I have reviewed every single reply in the forum and it seems the bug didn't affect any existent data, so there is no need to fix the current production database, I fixed the affected code and added some conditional css rules for 3rd level and higher replies, this was a UI, just visual issue, we should never alter the data to change things like this issue.
I also tried to assess if integrating a nested tree gem like ancestry would worth the effort, probably it will be useful to improve data structure and performance, but it may involve so many critical changes in the database structure so I think for the moment the changes proposed in my pull request just fix the problem without messing with sensitive areas of the code.
from spacedecentral-network.
Related Issues (20)
- Improve the responsive behavior of the top navigation
- Sync with our mailchimp when someone signs up for a new account and opts in to the newsletter
- Signup improvements
- When editing a post with special characters like quotes, it exposes the unicode
- remove /programs/ from the program/project URL
- Remove the form when joining a project or program
- Fix padding in cover region for projects HOT 1
- Notify when a user joins Program
- add React
- add react_on_rails gem
- notifications - change behaviour to watcher-per-post HOT 2
- Add link to spacedecentral's Github in nav bar
- create a SMAP dashboard
- Validate that people are entering real email addresses
- Update the subject line of notification emails
- Sign up form failed but saved email HOT 1
- Setup google analytics
- Cannot close the New Publication modal
- Add instructions for what file formats are supported when uploading a publication
- Add more obvious way to access the publication URL from the publication landing page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacedecentral-network.