Refine server picker layout and bump Harbor versions
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export const HARBOR_VERSIONS = Object.freeze({
|
||||
macClient: '0.8.7',
|
||||
gatewayClient: '0.8.7',
|
||||
macClient: '0.8.8',
|
||||
gatewayClient: '0.8.8',
|
||||
gatewayBackend: '0.8.0',
|
||||
});
|
||||
|
||||
|
||||
@@ -59,16 +59,16 @@ function ServerHealth({ ping, fallback }) {
|
||||
|
||||
function ServerCheckButton({ checking, disabled, onClick }) {
|
||||
return <button
|
||||
className={`client-server-check${checking ? ' is-checking' : ''}`}
|
||||
className={`client-server-check client-tooltip-anchor${checking ? ' is-checking' : ''}`}
|
||||
type="button"
|
||||
aria-label={checking ? 'Проверяем пинг серверов' : 'Проверить пинг серверов'}
|
||||
disabled={checking || disabled}
|
||||
onClick={onClick}
|
||||
>
|
||||
<span>{checking ? 'Проверяем' : 'Проверить пинг'}</span>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M21 12a9 9 0 0 0-15.2-6.5L3 8m0-5v5h5M3 12a9 9 0 0 0 15.2 6.5L21 16m0 5v-5h-5" />
|
||||
</svg>
|
||||
<span className="client-tooltip" role="tooltip">{checking ? 'Проверяем пинг…' : 'Проверить пинг'}</span>
|
||||
</button>;
|
||||
}
|
||||
|
||||
|
||||
+44
-26
@@ -2597,7 +2597,7 @@ p {
|
||||
.client-server-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
gap: 0;
|
||||
width: min(100%, 220px);
|
||||
margin-inline: auto;
|
||||
}
|
||||
@@ -2607,14 +2607,15 @@ p {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.client-server {
|
||||
min-width: 0;
|
||||
min-height: 44px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 6px 4px 7px;
|
||||
place-items: end center;
|
||||
padding: 0 4px 4px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--client-border);
|
||||
border-radius: 0;
|
||||
@@ -2686,9 +2687,21 @@ p {
|
||||
.client-server-health {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-server-meta .client-server-health {
|
||||
width: 42px;
|
||||
min-height: 44px;
|
||||
place-items: end center;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid var(--client-accent);
|
||||
}
|
||||
|
||||
.client-server-health > span {
|
||||
grid-area: 1 / 1;
|
||||
transition: opacity 420ms ease, filter 520ms cubic-bezier(0.16, 1, 0.3, 1), color 520ms ease;
|
||||
@@ -2718,8 +2731,8 @@ p {
|
||||
|
||||
.client-server-tools {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
margin-bottom: 14px;
|
||||
gap: 6px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.client-server-toolbar {
|
||||
@@ -2766,7 +2779,7 @@ p {
|
||||
grid-column: 3;
|
||||
grid-row: 1;
|
||||
justify-self: start;
|
||||
width: 104px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
padding: 0;
|
||||
@@ -2776,15 +2789,13 @@ p {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
font: 700 9px/1.2 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
cursor: pointer;
|
||||
transition: color 300ms ease, opacity 300ms ease, text-shadow 500ms ease;
|
||||
}
|
||||
|
||||
.client-server-check svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 1.6;
|
||||
@@ -2960,16 +2971,18 @@ p {
|
||||
|
||||
.client-server-pinned {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
margin-bottom: 10px;
|
||||
gap: 3px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.client-server-auto {
|
||||
width: 220px;
|
||||
min-height: 44px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 3px;
|
||||
padding: 6px;
|
||||
gap: 1px;
|
||||
margin-inline: auto;
|
||||
padding: 3px 6px 7px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--client-border);
|
||||
background: transparent;
|
||||
@@ -3034,16 +3047,18 @@ p {
|
||||
}
|
||||
|
||||
.client-servers.is-scalable .client-server-grid {
|
||||
gap: 5px;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.client-server-meta {
|
||||
position: relative;
|
||||
grid-column: 3;
|
||||
justify-self: start;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-left: 10px;
|
||||
width: 42px;
|
||||
min-height: 44px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.client-server-row .client-server {
|
||||
@@ -3052,17 +3067,24 @@ p {
|
||||
}
|
||||
|
||||
.client-server-favorite {
|
||||
width: 28px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: calc(100% + 2px);
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-border);
|
||||
font-size: 10px;
|
||||
cursor: pointer;
|
||||
opacity: 0.45;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.client-server-favorite.is-active {
|
||||
color: var(--client-accent);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.client-server-empty {
|
||||
@@ -3463,7 +3485,7 @@ p {
|
||||
}
|
||||
|
||||
.client-form-content {
|
||||
gap: 32px;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.harbor-brand {
|
||||
@@ -3494,7 +3516,7 @@ p {
|
||||
}
|
||||
|
||||
.client-server-check {
|
||||
width: 104px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
@@ -3506,10 +3528,6 @@ p {
|
||||
grid-template-rows: 44px;
|
||||
}
|
||||
|
||||
.client-server-favorite {
|
||||
width: 44px;
|
||||
}
|
||||
|
||||
.client-local-rule {
|
||||
grid-template-columns: 44px minmax(0, 1fr) 44px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user