Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

scrollbar css changed #120

Merged
merged 2 commits into from
Oct 18, 2020
Merged

Conversation

ArunTeltia
Copy link
Contributor

customized the scrollbar as per #119 issue

src/App.css Outdated
@@ -0,0 +1,14 @@
::-webkit-scrollbar-track {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just realizied that you had made a seperate css file for this, but can't we do it with makeStyles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually we cant apply psuedo selector css inline
Have a look at this
https://stackoverflow.com/questions/47345981/customize-webkit-scrollbar-inline-with-react

@Abhishek-kumar09
Copy link
Contributor

I cant see your changes with build preview, Is it same from your side?
Screenshot from 2020-10-05 04-34-08

src/App.css Outdated
border-radius: 10px;
background-color: #000000;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

please add a newline at the end of file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay , I will
but for the above query for me its working in whole website

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you tell me more about newline please

Copy link
Contributor

@Abhishek-kumar09 Abhishek-kumar09 Oct 4, 2020

Choose a reason for hiding this comment

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

You have to end every file with a blank line according to POSIX standards. In this file you could see that the line written with your code is the last line, but that should not be the case. You should add a new blank line.

Copy link
Contributor Author

@ArunTeltia ArunTeltia Oct 4, 2020

Choose a reason for hiding this comment

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

okay wait ,i am doing it thanks for telling me

@Abhishek-kumar09
Copy link
Contributor

but for the above query for me its working in whole website

Okay, now I got it...Webkit is only working with chrome, you have to additionally add -moz- support to make the webpage same in both browser. Currently you can't see your changes with mozilla.

@ArunTeltia
Copy link
Contributor Author

okay so i will add more classes for other browser support

@ArunTeltia
Copy link
Contributor Author

check this view for mozzilla @Abhishek-kumar09
check this stack overflow thread
https://stackoverflow.com/questions/56975071/how-to-make-firefox-scrollbar-thinner-than-thin
the scrollbar issue in firefox is relatively new
moz-view
now i also checked the ways to make the scrollbar thin and curved and i got to this reddit post
https://www.reddit.com/r/firefox/comments/7f6kc4/floating_scrollbar_finally_possible_in_firefox_57/

@Abhishek-kumar09
Copy link
Contributor

Abhishek-kumar09 commented Oct 6, 2020

Hey @ArunTeltia, can we make a carasouel out of this horizontal scrolling and leave the side scroll bar as it is?

@ArunTeltia
Copy link
Contributor Author

ArunTeltia commented Oct 6, 2020

yes and it would be okay for laptop users to scroll sidewise but what about the pc users ,they need some scrollbar to scroll for reading testimonials

@Abhishek-kumar09
Copy link
Contributor

Abhishek-kumar09 commented Oct 7, 2020

@ArunTeltia, some changes:

  • Revert to the previous scroll bars
  • Delete App.css
  • About testimonial section: We want some automatic scrolling on testimonial section, the cards should move horizontally automatically.

@ArunTeltia
Copy link
Contributor Author

remove scroll bar in testimonials and make them movable ?
okay i will do that

@KeenWarrior
Copy link
Contributor

@ArunTeltia Any update

@ArunTeltia
Copy link
Contributor Author

Working on it sir @KeenWarrior

@ArunTeltia
Copy link
Contributor Author

@Abhishek-kumar09 , i know how to make this infinitely moving by writing advance css for example adding animation and keyframes but i dont know if that is being supported by react inline style , can i use a library for implementing this feature or i can simply add a css file ?

animation: animate 60s linear infinite;

this is the line of css i need to write for the smooth transitional effect
Please check this out

@Abhishek-kumar09
Copy link
Contributor

OK, you could write it with creating a new css file or use makeStyles(), its your choice we are happy with both.

@ArunTeltia
Copy link
Contributor Author

ArunTeltia commented Oct 10, 2020

Code-for-Cause-Google-Chrome-202
It is going to and fro first go to last then go back to first
Check this @Abhishek-kumar09 @KeenWarrior

@Abhishek-kumar09
Copy link
Contributor

Its looking great now, Please commit those changes here.

@ArunTeltia
Copy link
Contributor Author

can you help me with how to get the commits from the upstream
I dont know how to do that
Or i can create a new branch and add add a new pr ?

@Abhishek-kumar09
Copy link
Contributor

Abhishek-kumar09 commented Oct 10, 2020

do:

  • git remote add upstream
  • git fetch upstream
  • git rebase upstream/development
  • git push -f

@ArunTeltia
Copy link
Contributor Author

I just check I accidently removed the comments do i have to add those ?

@Abhishek-kumar09
Copy link
Contributor

Its safe if you could restore those.

@Abhishek-kumar09
Copy link
Contributor

@ArunTeltia Please make it uni-directional, infinite. Sorry I gave you wrong info before, we have update to keep it unidirectional and infinite movement.

@ArunTeltia
Copy link
Contributor Author

u mean it must be an infinite loop?
Okay give me time i will do that

@ArunTeltia
Copy link
Contributor Author

ArunTeltia commented Oct 11, 2020

can you help me with this i tried but i am not able to make it look like circular
My deduction:
I will need a js library for implementing this
2nd
I will need to duplicate the cards such that i can make them appear side by side like a circular linked list and than i can try animation that
For now I can make the list disappear as it go left and after it disappear it will start to reappear from the right
but there will be a gap between those
Please help me
PS: I dont like libraries i like to write in pure css so it would be great if you recommend me a library to implement this feature

@ArunTeltia
Copy link
Contributor Author

Okay so what i did is add 3 starting cards at the end of the cardlist in the grid so that there is no gap between each other

ezgif com-gif-maker

@ArunTeltia
Copy link
Contributor Author

ArunTeltia commented Oct 12, 2020

Please check @KeenWarrior @Abhishek-kumar09
Edit: If this approach is okay then i will write a dry code :D

Comment on lines 149 to 174
className="recommendation_slide"
key={index}
style={{
margin: '20px',
borderRadius: '5px',
height: 'auto',
overflow: 'hidden',
boxShadow: '0px 0px 14px rgba(0, 0, 0, 0.1)'
}}
>
<Card className={classes.card}>
<CardContent className={classes.cardContent}>
<img
alt=""
width="70px"
src={
index % 2 === 0
? '/static/reviews/high.png'
: '/static/reviews/low.png'
}
/>
</CardContent>

<CardContent className={classes.cardContent}>
<Box display="flex" justifyContent="center">
<Typography
Copy link
Contributor

Choose a reason for hiding this comment

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

Okay so what i did is add 3 starting cards at the end of the cardlist in the grid so that there is no gap between each other

Please remove this, as no one is gonna starr at testimonial for so long, and afterall we are still getting some motion discontinuity after those 3 added card. I think., else is great 🥇

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay got it let me check that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why I have to remove these lines These are essential piece of code and will break the component totally
Can you please recheck @Abhishek-kumar09

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh Sorry my mistake, you have to remove the code for 3 extra cards that you had added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh okay

@ArunTeltia
Copy link
Contributor Author

Okay done @Abhishek-kumar09 you can check
Please also allot one more issue to me :D

@Abhishek-kumar09
Copy link
Contributor

Please also allot one more issue to me :D

Great you are enthuastic about it!
Wanna try: https://github.com/codeforcauseorg/codeforcause.org/issues/95 its bit complicated and some part of it is done, you could always take help from that. But ofcourse your personal ground level idea is more welcome, because in earlier approach there were some problems that's why it could only solve the issue partially.

@ArunTeltia
Copy link
Contributor Author

Great will start work right away via reading previous logs

@KeenWarrior KeenWarrior merged commit 185fa0a into codeforcauseorg:development Oct 18, 2020
@ArunTeltia ArunTeltia deleted the test1 branch November 7, 2020 17:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants