-
Notifications
You must be signed in to change notification settings - Fork 5
layout has broken - everything is now left-aligned #500
Comments
My first thought was that this is a Looking at the recent PRs, I'm guessing the problem was introduced in this one: #484 "update dependencies" Checking out an old commit (from a time when we definitely didn't have this layout issue) doesn't actually bring up the old, unbroken layout...until I re-run |
You got #500 🥇 ... thanks for looking into this - seems like your best placed. 👍 |
No problem 😸 Well.. 😳 ... 🤞 So, the layout problem was introduced by this commit - "chore: update server dependencies " Checking out the commit beforehand, running yarn and starting the app = no layout breakages. So. Investigation. From the commit beforehand, running After the "update server dependencies" commit, So we've got these lines, which are new:
Which is strange, since this was only supposed to be updating server dependencies. And at first, from the PR it looks like only server-side things have changed. But if you load the whole You can also see from our
But the changelog doesn't mention versions ... 🤷♀️ Tried changing |
Hmmm.....strangely....after checking out the commit right after that: "chore: update client side dependencies " & running Checking out the commit after that "update dev dependencies" & running yarn, the same thing - layout issues are still gone. That's all 3 commits from that PR. So now I'm doubley confused as to what's caused this. Gonna carry on checking out commits til I find another culprit |
Ok so it seems like this layout issue (as well as the We were fine at commit At commit |
Thanks for the leg work on this @jsms90 |
Ooof this has been a doozey! Ok, so I've narrowed it down to a change in the commit called "update pubsweet package versions". You can see that
For whatever reason, the addition of version I'm unsure what the "right" way of solving this is, since it's at the level of dependencies on dependencies? Perhaps raising an issue on |
FYI, here's how I realised that At first, when I thought Tam's "chore: update server dependencies" commit had introduced the bug, because that one also broke our layout in the same way, In that "chore: update server dependencies" commit, In his next commit, which unbroke the layout again, |
Raised issues on This morning @damnhipster and I talked about alternatives to putting So I tried forking But this doesn't seem to work. Our layout remains broken this way. @damnhipster identified an issue in yarn: "Allow subdirectories within git repos in yarn install" yarnpkg/yarn#4725, which may be the reason - remember that After this go around, I've been starting to wonder whether this was such a useful approach anyway. This way, we would still be putting SO! We're back to the drawing board. But, there is something in yarn called "resolutions" which may be good for this situation:
|
Describe the bug
For some reason, everything is now left aligned
To Reproduce
Pull the latest changes from
develop
& start the appExpected behavior
How the screens are supposed to look:
Screenshots
Now:
The text was updated successfully, but these errors were encountered: