Commit 813da897 authored by Muhammadali's avatar Muhammadali

update-

parent fd25634c
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.1.4", "version": "4.1.5",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -36,7 +36,11 @@ const CallHistoryInputDropdown = ({ ...@@ -36,7 +36,11 @@ const CallHistoryInputDropdown = ({
} }
}, [numberSelectHistory]); }, [numberSelectHistory]);
useEffect(() => {}, [document.getElementById('numbersDiv')]); useEffect(() => {
document
.getElementById('numbersDiv')
.scrollTo(document.getElementById('numbersDiv').scrollWidth, 0);
}, [inputValue]);
return ( return (
<Block> <Block>
...@@ -45,11 +49,9 @@ const CallHistoryInputDropdown = ({ ...@@ -45,11 +49,9 @@ const CallHistoryInputDropdown = ({
setDefaultHistoryNumberHistory(); setDefaultHistoryNumberHistory();
setModal(!modal); setModal(!modal);
}} }}
id='numbersDiv'
className='nocopy' className='nocopy'
type='text' type='text'>
value={inputValue}> <p id='numbersDiv'>{inputValue}</p>
{inputValue}
</Input> </Input>
{Boolean(call_history.length) && ( {Boolean(call_history.length) && (
<> <>
......
...@@ -8,44 +8,23 @@ const Block = styled.div` ...@@ -8,44 +8,23 @@ const Block = styled.div`
`; `;
const Input = styled.div` const Input = styled.div`
overflow-x: scroll;
overflow-y: hidden;
border: 1px solid red;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
margin: 0; margin: 0;
box-sizing: border-box; box-sizing: border-box;
width: 165px; width: 200px;
height: 100%; height: 100%;
max-height: 45px; max-height: 45px;
border-radius: 3px; border-radius: 3px;
background-color: #fff; background-color: #fff;
/* border: 0; */ /* border: 0; */
padding: 0 0 0 10px; padding: 0 30px 0 10px;
font-size: 22px; font-size: 22px;
color: #000; color: #000;
display: flex; display: flex;
align-items: center; align-items: center;
::-webkit-scrollbar {
height: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: #fff0;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #abaaaa;
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
:focus { :focus {
border-color: inherit; border-color: inherit;
-webkit-box-shadow: none; -webkit-box-shadow: none;
...@@ -70,6 +49,29 @@ const Input = styled.div` ...@@ -70,6 +49,29 @@ const Input = styled.div`
&[type='number'] { &[type='number'] {
-moz-appearance: textfield; -moz-appearance: textfield;
} }
> p {
overflow-x: scroll;
overflow-y: hidden;
::-webkit-scrollbar {
height: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: #fff0;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #abaaaa;
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
}
`; `;
const ModalDropDown = styled.div` const ModalDropDown = styled.div`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment