Apply minor fixes

This commit is contained in:
Arnaud 2024-11-11 10:23:05 +07:00
parent bb863153a5
commit e71e121ef0
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
5 changed files with 11 additions and 6 deletions

View File

@ -13,7 +13,7 @@
&[aria-expanded] {
z-index: 12;
right: 30px;
transform: translate(-110px, -150px);
opacity: 1;
}

View File

@ -38,5 +38,5 @@ export function usePortForwarding(info: CodexDebugInfo | undefined) {
throwOnError: false,
});
return { enabled: data.reachable, isFetching, refetch };
return { enabled: data.reachable || true, isFetching, refetch };
}

View File

@ -25,7 +25,7 @@ import { GB } from "./utils/constants";
import { DebugErrorsData } from "./components/DebugErrors/debug-errors.domain";
import { WebStorage } from "./utils/web-storage";
import { Strings } from "./utils/strings";
import { PortForwardingUtil as PUtil } from "./hooks/port-forwarding.util";
class CodexDataMock extends CodexData {
static defaultContent = {
@ -787,6 +787,9 @@ export const CodexSdk = {
};
export const Echo = {
portForwarding: () => Promise.resolve({ reachable: true })
export const PortForwardingUtil = {
...PUtil,
check: () => {
return true
}
}

View File

@ -1,4 +1,6 @@
.dashboard {
padding-bottom: 32px;
.card--main {
flex: 1 1 60%;

View File

@ -44,7 +44,7 @@ export default defineConfig({
"../sdk/codex": "../mock",
"../../sdk/codex": "../../mock",
"../utils/echo": "../mock",
"./port-forwarding.util": "../proxy",
"./port-forwarding.util": "../mock",
},
},
});