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

feat: Added styling in list-wrapper so that it does not stretch too far #875

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 47 additions & 12 deletions apps/widget/src/components/Common/Table/HandsonTable.styles.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
}

.list-wrapper {
width: auto;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.09);
background-color: #fff;
visibility: hidden;
Expand All @@ -96,8 +97,22 @@
}
.list-wrapper.open {
visibility: visible;
position: absolute;
width: auto;
min-width: fit-content;
max-width: 100%;
z-index: 300;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
background: white;
overflow: hidden;
box-sizing: border-box;
top: 100%;
left: 0;
margin: 0;
}


.list-wrapper ul {
position: fixed;
height: 180px;
Expand All @@ -108,47 +123,65 @@
border: 1px solid #ddd;
}

.list-wrapper.open ul {
width: 100%;
max-width: none;
height: auto;
max-height: 50vh;
overflow-y: auto;
margin: 0;
padding: 0;
border: none;
position: relative;
}

.list-wrapper:hover .option:not(:hover) {
background-color: transparent !important;
}

.list-dropdown {
max-height: 250px;
overflow: auto;
z-index: 999;
top: 100%;
left: 0;
border: 1px solid #ddd;

width: 100%;
}
/* .ht_clone_left {
box-shadow: 2px 0px 6px 0px rgb(0 0 0 / 20%);
} */


.dd-searchbox {
padding: 0.5rem;
background-color: #fff;
color: #000;
border: none;
outline: none;
}

.list-wrapper ul {
padding: 0;
padding: 0.5rem;
background-color: #fff;
color: #000;
border: none;
outline: none;
width: 100%;
min-width: min-content;
max-width: 100%;
box-sizing: border-box;
text-overflow: ellipsis;
}

.option {
cursor: pointer;
outline: none;
padding: 0.5rem;
list-style: none;
width: 100%;
}

.option:hover, .option:focus {
.option:hover,
.option:focus {
background-color: #f6f6f6 !important;
}

.option.selected {
overflow: hidden;
width: 100%;
font-weight: 600;
background-color: #f6f6f6 !important;
}
Expand All @@ -159,7 +192,9 @@
flex-wrap: wrap;
padding: 3px;
gap: 2px;
overflow: hidden;
max-width: fit-content;
box-sizing: border-box;
position: relative;
}
.item {
display: flex;
Expand Down
Loading