Skip to content

Commit 28a52ed

Browse files
committed
fix: buttons jumping on hover
1 parent 572538c commit 28a52ed

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ function RemoteFunctions(config = {}) {
13431343
`,
13441344

13451345
selectImageFromComputer: `
1346-
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
1346+
<svg viewBox="0 0 24 24" fill="currentColor" width="18" height="18">
13471347
<path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/>
13481348
</svg>
13491349
`,
@@ -1358,6 +1358,12 @@ function RemoteFunctions(config = {}) {
13581358
<svg viewBox="0 0 24 24" fill="currentColor" width="18" height="18">
13591359
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>
13601360
</svg>
1361+
`,
1362+
1363+
close: `
1364+
<svg viewBox="0 0 24 24" fill="currentColor" width="16" height="16">
1365+
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
1366+
</svg>
13611367
`
13621368
};
13631369

@@ -2350,25 +2356,28 @@ function RemoteFunctions(config = {}) {
23502356
display: flex !important;
23512357
width: 100% !important;
23522358
position: absolute !important;
2353-
top: 8px !important;
2359+
top: 7px !important;
23542360
}
23552361
23562362
.phoenix-ribbon-header-left {
23572363
width: 80% !important;
23582364
display: flex !important;
2365+
align-items: center !important;
23592366
}
23602367
23612368
.phoenix-ribbon-header-right {
23622369
width: 20% !important;
23632370
display: flex !important;
23642371
justify-content: flex-end !important;
2372+
align-items: center !important;
23652373
}
23662374
23672375
.phoenix-ribbon-search {
23682376
display: flex !important;
23692377
align-items: stretch !important;
23702378
border-radius: 6px !important;
2371-
margin-left: 6px !important;
2379+
margin-left: 8px !important;
2380+
padding: 2px 2px 2px 4px !important;
23722381
border: 1px solid rgba(255,255,255,0.14) !important;
23732382
}
23742383
@@ -2409,7 +2418,7 @@ function RemoteFunctions(config = {}) {
24092418
24102419
.phoenix-ribbon-search-btn {
24112420
background: transparent !important;
2412-
border: none !important;
2421+
border: 1px solid transparent !important;
24132422
color: #a0a0a0 !important;
24142423
cursor: pointer !important;
24152424
padding: 2px 6px !important;
@@ -2426,15 +2435,19 @@ function RemoteFunctions(config = {}) {
24262435
}
24272436
24282437
.phoenix-ribbon-select {
2429-
margin-left: 10px !important;
2438+
margin-left: 4px !important;
24302439
}
24312440
24322441
.phoenix-select-image-btn {
24332442
background-color: transparent !important;
2434-
border: none !important;
2443+
border: 1px solid transparent !important;
24352444
color: #a0a0a0 !important;
24362445
border-radius: 6px !important;
24372446
cursor: pointer !important;
2447+
padding: 3px 6px !important;
2448+
display: flex !important;
2449+
align-items: center !important;
2450+
justify-content: center !important;
24382451
}
24392452
24402453
.phoenix-select-image-btn:hover {
@@ -2444,15 +2457,15 @@ function RemoteFunctions(config = {}) {
24442457
24452458
.phoenix-ribbon-folder-settings {
24462459
background-color: transparent !important;
2447-
border: none !important;
2460+
border: 1px solid transparent !important;
24482461
color: #a0a0a0 !important;
24492462
border-radius: 6px !important;
24502463
cursor: pointer !important;
2451-
margin-right: 8px !important;
2464+
margin-right: 2px !important;
2465+
padding: 3px 6px !important;
24522466
display: flex !important;
24532467
align-items: center !important;
24542468
justify-content: center !important;
2455-
margin-bottom: 4px !important;
24562469
}
24572470
24582471
.phoenix-ribbon-folder-settings:hover {
@@ -2462,15 +2475,15 @@ function RemoteFunctions(config = {}) {
24622475
24632476
.phoenix-ribbon-close {
24642477
background-color: transparent !important;
2465-
border: none !important;
2478+
border: 1px solid transparent !important;
24662479
color: #a0a0a0 !important;
24672480
border-radius: 6px !important;
24682481
cursor: pointer !important;
2482+
padding: 3px 6px !important;
24692483
display: flex !important;
24702484
align-items: center !important;
24712485
justify-content: center !important;
24722486
margin-right: 16px !important;
2473-
font-size: 22px !important;
24742487
}
24752488
24762489
.phoenix-ribbon-close:hover {
@@ -2618,7 +2631,9 @@ function RemoteFunctions(config = {}) {
26182631
<button class="phoenix-ribbon-folder-settings" title="${config.strings.imageGallerySelectDownloadFolder}">
26192632
${ICONS.folderSettings}
26202633
</button>
2621-
<button class="phoenix-ribbon-close">×</button>
2634+
<button class="phoenix-ribbon-close">
2635+
${ICONS.close}
2636+
</button>
26222637
</div>
26232638
</div>
26242639
<div class="phoenix-ribbon-nav left">&#8249;</div>

0 commit comments

Comments
 (0)