Skip to content

Commit

Permalink
fix: change translate-word style
Browse files Browse the repository at this point in the history
  • Loading branch information
ymzuiku committed Oct 14, 2023
1 parent f2fdbec commit 9a30fe3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/translate-word.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
<span on:click={handleTranslate} class="cursor-pointer hover:opacity-75">
<Speech {text}>{text}</Speech>
{#if translate}
( {translate})
<span class="text-sm mx-[2px] text-gray-500">{translate}</span>
{/if}
</span>
2 changes: 2 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
preloadCode('/brain');
preloadCode('/brain/[memoryId]/[sentenceId]/[memorabillity]');
preloadCode('/setting');
preloadCode('/article');
preloadCode('/article/learn');
preloadCode('/setting/update-infomation');
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/routes/article/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<main id="setting" aria-label="setting page" class="flex flex-col p-4 min-h-full h-full gap-4">
<h2 class="text-xl font-semibold">{i18n`文章`}</h2>
<textarea bind:value={$article} class={twMerge(css.input, 'h-[calc(100vh-300px)]')} />
<a class={twMerge(css.button, 'w-full sm:max-w-full')} href="/article/learn">
<textarea bind:value={$article} class={twMerge(css.input, 'h-[calc(100vh-350px)]')} />
<a class={twMerge(css.button, 'w-full sm:max-w-full h-12')} href="/article/learn">
{i18n`学习这段内容`}
</a>
</main>
Expand Down

0 comments on commit 9a30fe3

Please sign in to comment.