Skip to content

Commit 910b8af

Browse files
committed
feat: update background color when a option button is hovered
1 parent ff87685 commit 910b8af

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,11 @@ function RemoteFunctions(config) {
544544
// box width we need to decide based on the no. of options
545545
let boxWidth;
546546
if (optionCount === 2) {
547-
boxWidth = 52;
547+
boxWidth = 48;
548548
} else if (optionCount === 3) {
549-
boxWidth = 82;
549+
boxWidth = 72;
550550
} else {
551-
boxWidth = 106;
551+
boxWidth = 96;
552552
}
553553

554554
// the icons that is displayed in the box
@@ -612,7 +612,6 @@ function RemoteFunctions(config) {
612612
background-color: #4285F4;
613613
color: white;
614614
border-radius: 3px;
615-
padding: 5px 8px;
616615
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
617616
font-size: 12px;
618617
font-family: Arial, sans-serif;
@@ -626,14 +625,27 @@ function RemoteFunctions(config) {
626625
627626
.node-options {
628627
display: flex;
629-
gap: 8px;
630628
align-items: center;
631629
}
632630
633631
.node-options span {
632+
padding: 4px 3.9px;
634633
cursor: pointer;
635634
display: flex;
636635
align-items: center;
636+
border-radius: 0;
637+
}
638+
639+
.node-options span:first-child {
640+
border-radius: 3px 0 0 3px;
641+
}
642+
643+
.node-options span:last-child {
644+
border-radius: 0 3px 3px 0;
645+
}
646+
647+
.node-options span:hover {
648+
background-color: rgba(255, 255, 255, 0.15);
637649
}
638650
639651
.node-options span > svg {

0 commit comments

Comments
 (0)