このコミットが含まれているのは:
2026-07-06 22:39:53 +09:00
コミット e74f16782b
3個のファイルの変更19行の追加78行の削除
+6 -27
ファイルの表示
@@ -47,7 +47,7 @@ const embedAutoLoadOptions: SegmentedOption<ClientEmbedAutoLoadMode>[] = [
const linkPreloadOptions: SegmentedOption<ClientLinkPreloadMode>[] = [
{ value: 'off', label: 'しない' },
{ value: 'intent', label: 'マウスを置いたら' }]
{ value: 'intent', label: 'する' }]
const tagRelationDisplayOptions: SegmentedOption<ClientTagRelationDisplayMode>[] = [
{ value: 'flat', label: 'まとめない' },
@@ -90,7 +90,7 @@ const SegmentedControl = <T extends string,> (
const SettingBlock: FC<SettingBlockProps> = (
{ title, description, children },
) => (
<div className="space-y-3 rounded-xl border border-border/70 bg-background/70 p-4">
<div className="space-y-3 rounded-xl px-4">
<div className="space-y-1">
<h3 className="text-sm font-semibold">{title}</h3>
<p className="text-sm text-muted-foreground">{description}</p>
@@ -149,10 +149,6 @@ const BehaviourSettingsSection: FC<Props> = (
<div className="flex flex-wrap items-start justify-between gap-3">
<div className="space-y-1">
<h2 className="text-xl font-bold"></h2>
{hasUnsavedChanges && (
<p className="text-sm text-amber-700 dark:text-amber-300">
</p>)}
</div>
<div className="flex flex-wrap gap-2">
@@ -173,50 +169,33 @@ const BehaviourSettingsSection: FC<Props> = (
</div>
<div className="space-y-4">
<SettingBlock
title="アニメーション"
description="画面遷移やレイアウト移動の動きを調整します。">
<SettingBlock title="アニメーション">
<SegmentedControl
value={draftSettings.animation ?? 'normal'}
options={animationOptions}
onChange={value => updateDraft ('animation', value)}/>
</SettingBlock>
<SettingBlock
title="リンク先の先読み"
description="リンクにマウスを置いた時などに、移動先の情報を先に読みます。通信量や意図しない読込みが気になる場合は「しない」にできます。">
<SettingBlock title="リンク先の先読み">
<SegmentedControl
value={draftSettings.linkPreload ?? 'intent'}
options={linkPreloadOptions}
onChange={value => updateDraft ('linkPreload', value)}/>
</SettingBlock>
<SettingBlock
title="タグの親子関係表示"
description="親子関係があるタグを、まとまりとして表示します。見た目を単純にしたい場合は「まとめない」にできます。">
<SettingBlock title="タグの親子関係表示">
<SegmentedControl
value={draftSettings.tagRelationDisplay ?? 'grouped'}
options={tagRelationDisplayOptions}
onChange={value => updateDraft ('tagRelationDisplay', value)}/>
</SettingBlock>
<SettingBlock
title="埋め込み自動読込"
description="外部埋め込みを自動で読み込むかを切り替えます。">
<SettingBlock title="埋め込み自動読込">
<SegmentedControl
value={draftSettings.embedAutoLoad ?? 'auto'}
options={embedAutoLoadOptions}
onChange={value => updateDraft ('embedAutoLoad', value)}/>
</SettingBlock>
<SettingBlock
title="サムネイル表示"
description="投稿一覧や詳細の画像表示を軽量化します。">
<SegmentedControl
value={draftSettings.thumbnailMode ?? 'normal'}
options={thumbnailModeOptions}
onChange={value => updateDraft ('thumbnailMode', value)}/>
</SettingBlock>
</div>
</section>)
}
+2 -6
ファイルの表示
@@ -147,10 +147,6 @@ const KeyboardSettingsSection: FC<Props> = (
<div className="flex flex-wrap items-start justify-between gap-3">
<div className="space-y-1">
<h2 className="text-xl font-bold"></h2>
{hasUnsavedChanges && (
<p className="text-sm text-amber-700 dark:text-amber-300">
</p>)}
</div>
<div className="flex flex-wrap gap-2">
@@ -206,8 +202,8 @@ const KeyboardSettingsSection: FC<Props> = (
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
<th className="p-2 text-left"></th>
</tr>
</thead>
+11 -45
ファイルの表示
@@ -152,7 +152,7 @@ const themeSlotNoSelections: ThemeSegmentedOption<UserThemeSlotNo>[] = [
{ value: 3, label: '3' } ]
const sectionClassName =
'space-y-4 rounded-xl border border-border bg-background/80 p-4'
'space-y-4 rounded-xl p-4'
const themeSelections: ThemeSelectionItem[] = [
{ id: 'user:light:1', label: 'ライト 1', baseTheme: 'light', slotNo: 1 },
@@ -517,16 +517,6 @@ const ThemeSection: FC<ThemeSectionProps> = (
<div className="flex flex-wrap items-start justify-between gap-3">
<div className="space-y-1">
<h2 className="text-xl font-bold"></h2>
<p className="text-sm text-muted-foreground">
: {displayedThemeLabel}
</p>
{draftThemeMode === 'system' && (
<p className="text-sm text-muted-foreground">
: {systemThemeLabel}
</p>)}
<p className="text-sm text-muted-foreground">
: {themeLabelBySelection (currentDisplayedThemeSlot)}
</p>
{hasUnsavedChanges && (
<p className="text-sm text-amber-700 dark:text-amber-300">
@@ -534,6 +524,13 @@ const ThemeSection: FC<ThemeSectionProps> = (
</div>
<div className="flex flex-wrap gap-2">
<Button
type="button"
variant="outline"
onClick={onResetThemeSlot}>
</Button>
<Button
type="button"
variant="destructive"
@@ -553,7 +550,7 @@ const ThemeSection: FC<ThemeSectionProps> = (
<FieldError messages={settingsBaseErrors}/>
<FieldError messages={settingsFieldErrors.theme ?? []}/>
<div className="space-y-3 rounded-xl border border-border/70 bg-background/70 p-4">
<div className="space-y-3 rounded-xl p-4">
<div className="flex flex-wrap items-center gap-x-4 gap-y-2">
<div className="shrink-0">
<Label></Label>
@@ -567,14 +564,6 @@ const ThemeSection: FC<ThemeSectionProps> = (
</div>
<div className="space-y-3">
<div className="space-y-1">
<h3 className="text-sm font-semibold">使</h3>
<p className="text-sm text-muted-foreground">
使
</p>
</div>
<div className="grid gap-3 md:grid-cols-2">
<div className="space-y-2">
<Label></Label>
@@ -588,9 +577,6 @@ const ThemeSection: FC<ThemeSectionProps> = (
{`ライト ${ selection.value }`}
</option>))}
</select>
<p className="text-sm text-muted-foreground">
使
</p>
</div>
<div className="space-y-2">
@@ -605,36 +591,16 @@ const ThemeSection: FC<ThemeSectionProps> = (
{`ダーク ${ selection.value }`}
</option>))}
</select>
<p className="text-sm text-muted-foreground">
使
</p>
</div>
</div>
</div>
<div className="flex flex-wrap items-center gap-2">
<Button
type="button"
variant="outline"
onClick={onResetThemeSlot}>
</Button>
</div>
<div style={themePreviewStyle (selectedTheme.tokens.tagColours)}>
<TagLink
tag={previewTags.general}
linkFlg={false}
truncateOnMobile
withWiki={false}/>
</div>
</div>
<div className="space-y-4">
{themeTokenGroups.map (group => (
<div
key={group.title}
className="space-y-3 rounded-xl border border-border/70 bg-background/70 p-4">
className="space-y-3 rounded-xl p-4">
<h3 className="text-sm font-semibold">{group.title}</h3>
<div className="space-y-1">
{group.fields.map (field => (
@@ -657,7 +623,7 @@ const ThemeSection: FC<ThemeSectionProps> = (
</div>
</div>))}
<div className="space-y-3 rounded-xl border border-border/70 bg-background/70 p-4">
<div className="space-y-3 rounded-xl bg-background/70 p-4">
<div className="flex flex-wrap items-center justify-between gap-2">
<div>
<h3 className="font-medium"></h3>