Skip to content

Commit 8e53a23

Browse files
authored
Fix content shift on stats row hover (hestiacp#3614)
* Fix content shift on stats row hover * Fix 500 when saving Configure Server form * Tidy some JS selectors * Revert "Fix 500 when saving Configure Server form" This reverts commit 0ac9a24.
1 parent 2335948 commit 8e53a23

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

web/css/src/themes/default.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,14 @@
12631263
display: flex;
12641264
align-items: flex-start;
12651265
justify-content: space-between;
1266+
border-left: 1px solid transparent;
1267+
border-right: 1px solid transparent;
12661268
padding: 30px 20px;
12671269

12681270
&:hover {
12691271
background-color: #f8f8f8;
1270-
border-left: 1px solid #ddd;
1271-
border-right: 1px solid #ddd;
1272+
border-left-color: #ddd;
1273+
border-right-color: #ddd;
12721274
box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
12731275
}
12741276
}

web/js/src/navigation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function enterFocused() {
2929
}
3030

3131
const activeUnit = document.querySelector(
32-
'.js-units-container .l-unit.focus .actions-panel__col.actions-panel__edit a'
32+
'.js-unit.focus .actions-panel__col.actions-panel__edit a'
3333
);
3434
if (activeUnit) {
3535
location.href = activeUnit.getAttribute('href');
@@ -78,9 +78,9 @@ function moveFocusLeftRight(direction) {
7878
}
7979

8080
function moveFocusUpDown(direction) {
81-
const unitSelector = '.js-units-container .l-unit:not(.header)';
81+
const unitSelector = '.js-unit:not(.header)';
8282
const units = Array.from(document.querySelectorAll(unitSelector));
83-
const currentFocused = document.querySelector('.js-units-container .l-unit.focus');
83+
const currentFocused = document.querySelector('.js-unit.focus');
8484
let index = units.indexOf(currentFocused);
8585

8686
if (index === -1) {

0 commit comments

Comments
 (0)