Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove ScrollBar #36

Open
HarshJambukiya opened this issue Jul 13, 2024 · 6 comments
Open

How to remove ScrollBar #36

HarshJambukiya opened this issue Jul 13, 2024 · 6 comments

Comments

@HarshJambukiya
Copy link

Hello sir,

@safak, I used your code exactly as provided, but a scrollbar is not appearing in my UI. How can I remove this scrollbar?

image

@abhishek270104
Copy link

you can use ::-webkit-scrollbar{ } in css file to give style to scrollbar

@HarshJambukiya
Copy link
Author

I want to implement a scroll bar that functions like the one you saw in the video, without displaying the scroll bar itself.

@jaydesk
Copy link

jaydesk commented Aug 9, 2024

you can use below code in chatList.css file -

.chatList{
flex: 1;
overflow-y: scroll;

&::-webkit-scrollbar {
    width: 6px;
}

&::-webkit-scrollbar-track {
    background: transparent;
}

&::-webkit-scrollbar-thumb {
    background: rgba(17, 25, 40, 0.5);
    border-radius: 10px;
}

.search{
  ////  ...... further code

@Sahil2610511
Copy link

Can anyone paste the full code of each file please

@TRIBUI106
Copy link

Can anyone paste the full code of each file please

image
Just add it over the .search

@Massika-ke
Copy link

Massika-ke commented Dec 10, 2024

Can anyone paste the full code of each file please
chat.module.css/chat.css file
`.chat {
flex: 2;
border-left: 1px solid #dddddd35;
border-right: 1px solid #dddddd35;
height: 100%;
display: flex;
flex-direction: column;

.top{
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dddddd35;

    .user{
        display: flex;
        align-items: center;
        gap: 20px;

        img{
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        .texts {
            display: flex;
            flex-direction: column;
            gap: 5px;

            span{
                font-size: 18px;
                font-weight: bold;
            }

            p{
                font-size: 14px;
                font-weight: 300;
                color: #a5a5a5;
            }
        }
    }
    .icons{
        display: flex;
        gap: 20px;

        img{
            width: 20px;
            height: 20px;
        }
    }
    
}

.center{
    padding: 20px;
    flex: 1;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    gap: 20px;

    .message{
        max-width: 70%;
        display: flex;
        gap: 20px;

        &.own {
            align-self: flex-end;
        
            .texts{
                p{
                    background-color: #5183fe;
                }
            }
        }
        img{
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: cover;
        }
        .texts{
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;

            img{
                width: 100%;
                height: 200px;
                border-radius: 10px;
                object-fit: cover;
            }

            p{
                padding: 20px;
                background-color: rgba(17, 25, 40, 0.3);
                border-radius: 10px;
            }
            span{
                font-size: 13px;
            }
        }
        
    }

}
.bottom{
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dddddd35;
    gap: 20px;
    margin-top: auto;

    .icons{
        display: flex;
        gap: 20px;
    }
    img{
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    input{
        flex: 1;
        background-color: rgba(17, 25, 40, 0.5);
        border: none;
        outline: none;
        color: white;
        padding: 20px;
        border-radius: 10px;
        font-size: 16px;
    }
    .emoji {
        position: relative;

        .picker {
            position: absolute;
            bottom: 50px;
            left: 0;
        }
    }
    .sendButton{
        padding: 10px 20px;
        border-radius: 5px;
        background-color: #5183fe;
        color: white;
        cursor: pointer;
        border: none;
    }
}

}
.center::-webkit-scrollbar {
display: none; /* hide scrollbar */
}`

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

No branches or pull requests

6 participants