mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
add transition
This commit is contained in:
@@ -121,17 +121,19 @@ export default function Recorder(props) {
|
|||||||
padding: 0 2px 0 5px;
|
padding: 0 2px 0 5px;
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
max-width: fit-content;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 0 3px 3px 0;
|
border-radius: 0 3px 3px 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
transition: width 100ms linear;
|
||||||
`;
|
`;
|
||||||
content.onmouseover = () => {
|
content.onmouseover = () => {
|
||||||
content.style.backgroundColor = "orange";
|
content.style.backgroundColor = "orange";
|
||||||
content.style.zIndex = 999;
|
content.style.zIndex = 999;
|
||||||
content.style.width = "auto";
|
content.style.width = "300px";
|
||||||
};
|
};
|
||||||
content.onmouseout = () => {
|
content.onmouseout = () => {
|
||||||
content.style.backgroundColor = "white";
|
content.style.backgroundColor = "white";
|
||||||
|
|||||||
Reference in New Issue
Block a user