Skip to content

customized scrollbar for wen-kit browsers#59

Merged
XanderRubio merged 17 commits intoBeforeIDieCode:feature-48from
negar-75:issue-#48
Sep 6, 2023
Merged

customized scrollbar for wen-kit browsers#59
XanderRubio merged 17 commits intoBeforeIDieCode:feature-48from
negar-75:issue-#48

Conversation

@negar-75
Copy link
Copy Markdown
Contributor

@negar-75 negar-75 commented Sep 5, 2023

solved scrollbar issue

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
before-i-die-achievements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 9:25pm

@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Sep 5, 2023

@negar-75 I went ahead and connected this pull request to #48 so that once this gets merged, it will close out this issue officially. The scroll bar issue is good to go now ✅, and the only issue I still see is the div's alignment with the contributors' bid images. It is off to the left. And I'm still not sure why. I want to hold off merging until we figure it out. Let me know your thoughts.

Untitled.2.1.mov

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

bandicam-2023-09-06-12-24-50-474_2tENSTDh.mp4

I can not understand where this problem comes from because I see nothing from the issue😂😂
I removed padding and margin, did you see that?

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

you are using safari?

@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Sep 6, 2023

bandicam-2023-09-06-12-24-50-474_2tENSTDh.mp4
I can not understand where this problem comes from because I see nothing from the issue😂😂 I removed padding and margin, did you see that?

Hahaha, incredible! A mystery😅 Thank you for taking the time to share your screencast and I did see that you removed the padding and margin. I have an idea that I'm going to look into and see if that will fix it on my side. I'll respond back shortly.

you are using safari?

I have been using Chrome

@XanderRubio
Copy link
Copy Markdown
Member

I figured it out! After reviewing again😅 I've experienced numerous times when needing to find the fix, stepping away and returning to it with fresh eyes. After several days, we figured it out! I noticed now, viewing the issue#48 branch in my VSCode and running the local server, that we were missing the "className="flex justify-content-center" in the div in App.js.

Go and add this to your App.js div:

<div className="flex justify-content-center" style={{ marginTop: "50px", padding: '50px' }}>

App.js from your main branch on your forked version
Screenshot 2023-09-06 at 14 45 03

App.js from your issue#48 branch
Screenshot 2023-09-06 at 14 45 26
@negar-75 Go ahead and this code into the App.js of the issue#48 branch and recommit and then we can merge Bottle with Popping Cork
Screenshot 2023-09-06 at 14 46 13

Copy link
Copy Markdown
Member

@XanderRubio XanderRubio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add to the App.js and recommit and we will then be able to merge Clapping Hands

<div className="flex justify-content-center" style={{ marginTop: "50px", padding: '50px' }}>

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

ok, I will do that, but there is another question, when we are not using libraries like tailwindcss or bootstrap, how changing className can make a change in our style??

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

so what happened?

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

Revert "Issue #48"
all my changes that I applied has been reverted , I can not see any piece of my code .
after git pull I noticed all my changes has gone.
I do not know what is happening

@XanderRubio
Copy link
Copy Markdown
Member

so what happened?

@negar-75 😅😅 I'm grateful for your time working together during this process as I've learned more as I thought this was going to be a very simple merge request, and glad it hasn't been to learn more and understand betterBeaming Face with Smiling Eyes.

I went ahead and solved conflicts, and then this merged the main into the issue-#48 branch, and this caused an issue as it didn't include your great contributions. Then I brought the issue-#48 branch back to get back to where we were before (with reverting back to your original commit of added className, and deployment now shows your changes, and they look great.

I need to review the branch again to resolve issues. I see you went ahead and resolved the merge conflict, and for some reason, it merges the entire main into issue#48, and this is what happened before. All good we can get back to the original state with your edits. I find it weird why resolving the conflict is doing this and there isn't another option, as it is a simple change in the App.js and module.css that is causing the merge conflict. The main takeaway is your code is saved and in the commit history even though the deployment preview shows otherwise.

@XanderRubio
Copy link
Copy Markdown
Member

Revert "Issue #48" all my changes that I applied has been reverted , I can not see any piece of my code . after git pull I noticed all my changes has gone. I do not know what is happening

Let me organize the steps for you to implement to revert back your commit as this is a great learning opportunity for future times you need to restore your code and this will get the deployment preview back showing your changes😎

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

so should I apply all changes that I did before again?
or they still exists?

@XanderRubio
Copy link
Copy Markdown
Member

so should I apply all changes that I did before again? or they still exists?

Your changes still exist and we will get the issue-#48 branch back to this commit⬇️
Screenshot 2023-09-06 at 20 10 23

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

It is no problem, so we will get back to"added className to div " commit?

@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Sep 6, 2023

It is no problem, so we will get back to"added className to div " commit?

Yes we will get it back to where it was before this is a good learning lesson😎

@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Sep 6, 2023

To revert back to the working commit of added className to div:

  1. from your terminal in VSCode run
git log
  1. Then you see this
Screenshot 2023-09-06 at 20 14 38
  1. Copy the hash number (just the number not the word commit)
  2. Then your going to run the command and replace the <commit-hash> with the hash number. This command will move the HEAD and the current branch pointer to the specified commit, discarding all commits that came after the specified commit.
git reset --hard <commit-hash>

  1. Lasty running the following command to push the changes to the remote repository, you'll need to force-push the updated branch
git push -f

Let me know if I can help with clarify or anything else 😉

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

in issue-#48 branch should I do that?

@XanderRubio
Copy link
Copy Markdown
Member

in issue-#48 branch should I do that?

yes in branch issue-#48

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

I am done

@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

Screenshot 2023-09-06 193122

so now how can I resolve this conflict?

@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Sep 6, 2023

Screenshot 2023-09-06 193122

so now how can I resolve this conflict?

Now, when you recommit again, this will redeploy the CI (Continuous Integration) to the preview link and we will see it working. You can recommit with a message Redoplying as an example and will have to make some small change to your branch for you to make a new commit.

I'm unsure how to resolve the conflict in GitHub without merging the main into the branch issue-#48 (from the prompt that is given). One solution is to see if we can perform this merge currently from the command line or another solution that come to mind would be opening another pull request with issue-#48, fixing the conflict changes ahead of time as a possible solution. What do you think?

@XanderRubio
Copy link
Copy Markdown
Member

I know we can solve this merge conflict from the terminal following these command that are given to us but I do believed we need to change it slightly or else it causes the main to merge in issue-#48 when it should be the other way around.
git checkout -b 'negar-75-issue-#48' main
git pull https://github.com/negar-75/BeforeIDieAchievements.git 'issue-#48'
Step 2: Merge the changes and update on GitHub.

git checkout main
git merge --no-ff 'negar-75-issue-#48'
git push origin main

@XanderRubio
Copy link
Copy Markdown
Member

@negar-75 I will work on getting this merged by closing this pull request and opening another pull request. Thanks for your patience, and I will have an update shortly.

@XanderRubio XanderRubio closed this Sep 6, 2023
@XanderRubio XanderRubio reopened this Sep 6, 2023
@XanderRubio XanderRubio changed the base branch from main to feature-48 September 6, 2023 21:18
@XanderRubio
Copy link
Copy Markdown
Member

XanderRubio commented Sep 6, 2023

@negar-75 Based on my testing of various solutions, I have decided to merge your issue#48 branch into the feature-48 branch on the main repository. This approach will help us avoid any merge conflicts. Upon reviewing the situation, I have come to the conclusion that the potential issue could be due to the upstream branch not being updated with the main repository before initiating a pull request on the forked repo. To prevent this issue from arising in the future, I will be adding documentation on the process of submitting pull requests for new features with other branches. Please stay tuned as I work towards getting your code up and running on the live link.

@XanderRubio XanderRubio merged commit 1283a3e into BeforeIDieCode:feature-48 Sep 6, 2023
@negar-75
Copy link
Copy Markdown
Contributor Author

negar-75 commented Sep 6, 2023

I totally got confused with reverting and these stuff,
I think this is better to create another branch and apply all changes from scratch on that branch and then create another pull request. what do you think?

@XanderRubio
Copy link
Copy Markdown
Member

I totally got confused with reverting and these stuff, I think this is better to create another branch and apply all changes from scratch on that branch and then create another pull request. what do you think?

Agreed! Also better to create a new branch as a feature branch and then create another pull request. Additionally, making sure the main is fetch and fully up to date and then creating a new branch to work on can help with limiting potential merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🟢 🎨 UI Design for the text box that displays contributors text

2 participants