Skip to content

Commit

Permalink
feat: Static values removed and proper formatting done
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur committed Nov 20, 2024
1 parent 34dfecc commit 0925cf4
Showing 1 changed file with 46 additions and 12 deletions.
58 changes: 46 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,64 @@
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 {
width: 100%;
font-weight: 600;
background-color: #f6f6f6 !important;
}
Expand All @@ -159,7 +191,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

0 comments on commit 0925cf4

Please sign in to comment.