diff --git a/frontend/viewer/src/ProjectView.svelte b/frontend/viewer/src/ProjectView.svelte index 6df0d62b5..4fc3e5479 100644 --- a/frontend/viewer/src/ProjectView.svelte +++ b/frontend/viewer/src/ProjectView.svelte @@ -346,7 +346,7 @@ {#if about} {/if} - {#if $features.feedback} + {#if $features.feedback && fwLiteConfig.feedbackUrl} diff --git a/frontend/viewer/src/WebComponent.svelte b/frontend/viewer/src/WebComponent.svelte index 0c281ac81..1506e6e93 100644 --- a/frontend/viewer/src/WebComponent.svelte +++ b/frontend/viewer/src/WebComponent.svelte @@ -3,6 +3,8 @@ import ProjectView from './ProjectView.svelte'; import { getSettings } from 'svelte-ux'; import css from './app.postcss?inline'; + import {DotnetService} from '$lib/dotnet-types'; + import {FwLitePlatform} from '$lib/dotnet-types/generated-types/FwLiteShared/FwLitePlatform'; let loading = true; @@ -33,7 +35,12 @@ abortController.abort(); } }); - + window.lexbox.ServiceProvider.setService(DotnetService.FwLiteConfig, { + appVersion: 'lexbox-viewer', + feedbackUrl: '', + os: FwLitePlatform.Web, + useDevAssets: true,//has no effect, but is required + }); const { currentTheme } = getSettings(); diff --git a/frontend/viewer/src/lib/activity/ActivityView.svelte b/frontend/viewer/src/lib/activity/ActivityView.svelte index 23878d78e..953d71e03 100644 --- a/frontend/viewer/src/lib/activity/ActivityView.svelte +++ b/frontend/viewer/src/lib/activity/ActivityView.svelte @@ -86,8 +86,9 @@ {#if selectedRow} {/if} diff --git a/frontend/viewer/src/lib/dotnet-types/generated-types/FwLiteShared/Services/IMiniLcmJsInvokable.ts b/frontend/viewer/src/lib/dotnet-types/generated-types/FwLiteShared/Services/IMiniLcmJsInvokable.ts index 3a80ba807..2933e57b9 100644 --- a/frontend/viewer/src/lib/dotnet-types/generated-types/FwLiteShared/Services/IMiniLcmJsInvokable.ts +++ b/frontend/viewer/src/lib/dotnet-types/generated-types/FwLiteShared/Services/IMiniLcmJsInvokable.ts @@ -57,6 +57,5 @@ export interface IMiniLcmJsInvokable createExampleSentence(entryId: string, senseId: string, exampleSentence: IExampleSentence) : Promise; updateExampleSentence(entryId: string, senseId: string, before: IExampleSentence, after: IExampleSentence) : Promise; deleteExampleSentence(entryId: string, senseId: string, exampleSentenceId: string) : Promise; - dispose() : Promise; } /* eslint-enable */ diff --git a/frontend/viewer/src/lib/entry-editor/field.postcss b/frontend/viewer/src/lib/entry-editor/field.postcss index bcd54ae8f..01e791c23 100644 --- a/frontend/viewer/src/lib/entry-editor/field.postcss +++ b/frontend/viewer/src/lib/entry-editor/field.postcss @@ -24,23 +24,33 @@ @apply col-span-2 pl-4; } - .readonly { - &.TextField, .TextField { - opacity: 1; + &.TextField, .TextField { + [class~="border"] { + filter: contrast(0.95); + border-radius: 0; + border-style: none; + border-bottom-style: solid; + @apply !shadow-none; + border-color: hsl(var(--color-surface-content) / 30%); + } + } - [class~="border"] { - border: none; - } + &.readonly.TextField, .readonly.TextField, .readonly .TextField { + /* prevent other "disabled-state styles" from impacting readability */ + opacity: 1; - input { - /* enable standard text selection */ - pointer-events: auto; - cursor: text; - } + [class~="border"] { + border-color: hsl(var(--color-surface-content) / 20%); + background: transparent; + } + + input { + /* enable standard text selection */ + pointer-events: auto; + } - .append { - display: none; - } + .append, .prepend { + display: none; } } diff --git a/frontend/viewer/src/lib/entry-editor/inputs/CrdtMultiOptionField.svelte b/frontend/viewer/src/lib/entry-editor/inputs/CrdtMultiOptionField.svelte index bfd640d16..089c55cf5 100644 --- a/frontend/viewer/src/lib/entry-editor/inputs/CrdtMultiOptionField.svelte +++ b/frontend/viewer/src/lib/entry-editor/inputs/CrdtMultiOptionField.svelte @@ -43,7 +43,7 @@ value={editorValue} disabled={readonly} options={sortedOptions} - icon={readonly ? undefined : mdiMagnify} + icon={mdiMagnify} formatSelected={({ value, options }) => { return (preserveOrder // sorted by order of selection diff --git a/frontend/viewer/src/lib/history/HistoryView.svelte b/frontend/viewer/src/lib/history/HistoryView.svelte index 3a269ab3f..d1a4a7abc 100644 --- a/frontend/viewer/src/lib/history/HistoryView.svelte +++ b/frontend/viewer/src/lib/history/HistoryView.svelte @@ -70,14 +70,14 @@ {#if record?.entity} {#if record.entityName === 'Entry'} - + {:else if record.entityName === 'Sense'} - + {:else if record.entityName === 'ExampleSentence'} - + {/if} {/if}