Skip to content

Commit 8b9d1e1

Browse files
committed
fix: buttons not properly aligned
1 parent b5ce3b0 commit 8b9d1e1

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ function RemoteFunctions(config = {}) {
776776

777777
if (dropZone === "inside") {
778778
// inside marker - outline around the element
779-
marker.style.border = "1px dashed #4285F4";
779+
marker.style.border = "2px dashed #4285F4";
780780
marker.style.backgroundColor = "rgba(66, 133, 244, 0.05)";
781781
marker.style.left = rect.left + "px";
782782
marker.style.top = rect.top + "px";
@@ -791,7 +791,7 @@ function RemoteFunctions(config = {}) {
791791

792792
if (indicatorType === "vertical") {
793793
// Vertical marker (for flex row containers)
794-
marker.style.width = "2px";
794+
marker.style.width = "3px";
795795
marker.style.height = rect.height + "px";
796796
marker.style.top = rect.top + "px";
797797

@@ -803,7 +803,7 @@ function RemoteFunctions(config = {}) {
803803
} else {
804804
// Horizontal marker (for block/grid containers)
805805
marker.style.width = rect.width + "px";
806-
marker.style.height = "2px";
806+
marker.style.height = "3px";
807807
marker.style.left = rect.left + "px";
808808

809809
if (dropZone === "after") {

src/extensionsIntegrated/Phoenix-live-preview/live-preview.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@
5454
}
5555

5656
.open-icon {
57-
background: url("./images/sprites.svg#open-icon") center no-repeat;
57+
background: url("./images/sprites.svg#open-icon") no-repeat 72.5%;
5858
width: 30px;
5959
margin-left: 4px;
6060
}
6161

6262
.pin-icon {
63-
background: url("./images/sprites.svg#pinned-icon") center no-repeat;
63+
background: url("./images/sprites.svg#pinned-icon") no-repeat 72.5%;
6464
width: 30px;
6565
}
6666

6767
.unpin-icon {
68-
background: url("./images/sprites.svg#unpinned-icon") center no-repeat;
68+
background: url("./images/sprites.svg#unpinned-icon") no-repeat 72.5%;
6969
width: 30px;
7070
}
7171

@@ -80,6 +80,7 @@
8080
opacity: 1;
8181
visibility: visible;
8282
transition: unset;
83+
padding-left: 7.5px;
8384
}
8485

8586
.live-preview-settings input.error, .live-preview-settings input:focus.error{
@@ -95,13 +96,14 @@
9596
align-items: center;
9697
visibility: hidden;
9798
transition: opacity 1s, visibility 0s linear 1s; /* Fade-out effect */
99+
padding-left: 7.5px;
98100
}
99101

100102
#livePreviewModeBtn {
101103
min-width: fit-content;
102104
display: flex;
103105
align-items: center;
104-
margin: 2px 4px 0 3px;
106+
margin: 3px 4px 0 3px;
105107
max-width: 80%;
106108
text-overflow: ellipsis;
107109
overflow: hidden;
@@ -139,7 +141,7 @@
139141
#previewModeLivePreviewButton {
140142
color: #a0a0a0;
141143
margin-left: 3px;
142-
margin-top: 3.5px;
144+
margin-top: 3.3px;
143145
width: 30px;
144146
height: 22px;
145147
flex-shrink: 0;

0 commit comments

Comments
 (0)