8000 Disable Global Scroll and Enable Scroll Only in Result Component · Issue #114 · kaliacad/wqsai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Disable Global Scroll and Enable Scroll Only in Result Component #114
Open
@BirushaNdegeya

Description

@BirushaNdegeya

Disable Global Scroll and Enable Scroll Only in Result Component

Description:
Currently, the application has a global scroll, which is unnecessary and can disrupt the user experience. Instead, we should disable the global scroll and enable scrolling only within the Result Component. This will ensure a cleaner interface and better focus on the results.

Proposed Solution:

  1. Disable the global scroll by setting overflow: hidden on the root or body element.
  2. Enable scrolling within the Result Component by setting overflow-y: auto and defining a fixed height or max-height.
  3. Ensure the Result Component's scrollbar is styled to match the application's design.
  4. Test the changes to confirm that scrolling works as expected and does not affect other parts of the UI.

Example Implementation:

/* Disable global scroll */
body {
  overflow: hidden;
}

/* Enable scroll in Result Component */
.result-component {
  overflow-y: auto;
  max-height: 400px; /* Adjust as needed */
  scrollbar-width: thin; /* For modern browsers */
  scrollbar-color: #888 transparent; /* Custom scrollbar color */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0