Skip to content

Commit

Permalink
chore: light mode for Create Service page
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Martin <[email protected]>
  • Loading branch information
feloy committed Jun 20, 2024
1 parent 9e6d370 commit 5204628
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/CreateService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ test('form should be disabled when loading', async () => {
const select = screen.getByRole('combobox', { name: 'Model select' });
expect(select).toBeDisabled();

const input = screen.getByRole('spinbutton', { name: 'Port input' });
const input = screen.getByRole('textbox', { name: 'Port input' });
expect(input).toBeDisabled();
});
});
Expand Down
12 changes: 7 additions & 5 deletions packages/frontend/src/pages/CreateService.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { inferenceServers } from '/@/stores/inferenceServers';
import ContainerConnectionStatusInfo from '../lib/notification/ContainerConnectionStatusInfo.svelte';
import type { ContainerConnectionInfo } from '@shared/src/models/IContainerConnectionInfo';
import { checkContainerConnectionStatus } from '../utils/connectionUtils';
import { Button, ErrorMessage, FormPage } from '@podman-desktop/ui-svelte';
import { Button, ErrorMessage, FormPage, Input } from '@podman-desktop/ui-svelte';
// List of the models available locally
let localModels: ModelInfo[];
Expand Down Expand Up @@ -161,7 +161,8 @@ export function goToUpPage(): void {
<div class="bg-[var(--pd-content-card-bg)] m-5 space-y-6 px-8 sm:pb-6 xl:pb-8 rounded-lg h-fit">
<div class="w-full">
<!-- model input -->
<label for="model" class="pt-4 block mb-2 text-sm font-bold text-gray-400">Model</label>
<label for="model" class="pt-4 block mb-2 text-sm font-bold text-[var(--pd-content-card-header-text)]"
>Model</label>
<select
required
bind:value="{modelId}"
Expand All @@ -188,12 +189,13 @@ export function goToUpPage(): void {
</div>
{/if}
<!-- container port input -->
<label for="containerPort" class="pt-4 block mb-2 text-sm font-bold text-gray-400">Container port</label>
<input
<label for="containerPort" class="pt-4 block mb-2 text-sm font-bold text-[var(--pd-content-card-header-text)]"
>Container port</label>
<Input
type="number"
bind:value="{containerPort}"
on:input="{onContainerPortInput}"
class="w-full p-2 outline-none text-sm bg-charcoal-600 rounded-sm text-gray-700 placeholder-gray-700"
class="w-full"
placeholder="8888"
name="containerPort"
aria-label="Port input"
Expand Down

0 comments on commit 5204628

Please sign in to comment.