Consistent casing for titles

This commit is contained in:
Jackson Harper
2023-11-01 15:16:05 +08:00
parent 3575008e28
commit a28f618b08
11 changed files with 23 additions and 23 deletions

View File

@ -44,35 +44,35 @@ export function CardMenu(props: CardMenuProps): JSX.Element {
onSelect={() => {
props.actionHandler('set-labels')
}}
title="Set Labels"
title="Set labels"
/>
<DropdownOption
onSelect={() => {
props.actionHandler('open-notebook')
}}
title="Open Notebook"
title="Open notebook"
/>
<DropdownOption
onSelect={() => props.actionHandler('showOriginal')}
title="Open Original"
title="Open original"
/>
<DropdownOption
onSelect={() => props.actionHandler('editTitle')}
title="Edit Metadata"
title="Edit metadata"
/>
{props.item.readingProgressPercent < 98 ? (
<DropdownOption
onSelect={() => {
props.actionHandler('mark-read')
}}
title="Mark Read"
title="Mark read"
/>
) : (
<DropdownOption
onSelect={() => {
props.actionHandler('mark-unread')
}}
title="Mark Unread"
title="Mark unread"
/>
)}
<DropdownOption

View File

@ -107,7 +107,7 @@ function BarContent(props: HighlightBarProps): JSX.Element {
<Button
key={`color-${color}`}
style="highlightBarIcon"
title={`Create Highlight (${color})`}
title={`Create highlight (${color})`}
onClick={() => {
if (!props.isNewHighlight && props.highlightColor != color) {
props.handleButtonClick('updateColor', color)
@ -151,7 +151,7 @@ function BarContent(props: HighlightBarProps): JSX.Element {
{!props.isNewHighlight && (
<>
<Button
title={`Set Labels`}
title={`Set labels`}
style="highlightBarIcon"
onClick={() => props.handleButtonClick('setHighlightLabels')}
onMouseEnter={() => {
@ -174,7 +174,7 @@ function BarContent(props: HighlightBarProps): JSX.Element {
)}
<Button
title={props.isNewHighlight ? `Create Highlight w/note` : 'Add Note'}
title={props.isNewHighlight ? `Create highlight w/note` : 'Add note'}
style="highlightBarIcon"
onClick={() => props.handleButtonClick('comment')}
onMouseEnter={() => {

View File

@ -58,7 +58,7 @@ export const LibraryHoverActions = (props: LibraryHoverActionsProps) => {
}}
>
<Button
title="View Notebook (t)"
title="View notebook (t)"
style="hoverActionIcon"
onClick={(event) => {
props.handleAction('open-notebook')

View File

@ -19,11 +19,11 @@ export function ReaderDropdownMenu(props: DropdownMenuProps): JSX.Element {
/>
<DropdownOption
onSelect={() => props.articleActionHandler('setLabels')}
title="Edit Labels (l)"
title="Edit labels (l)"
/>
<DropdownOption
onSelect={() => props.articleActionHandler('showEditModal')}
title="Edit Info (i)"
title="Edit info (i)"
/>
<DropdownOption
onSelect={() => props.articleActionHandler('delete')}

View File

@ -282,7 +282,7 @@ export function UploadModal(props: UploadModalProps): JSX.Element {
>
<VStack distribution="start">
<ModalTitleBar
title="Upload File"
title="Upload file"
onOpenChange={props.onOpenChange}
/>
<Dropzone

View File

@ -213,7 +213,7 @@ export function AddBulkLabelsModal(
<VStack distribution="start" css={{ height: '100%' }}>
<SpanBox css={{ pt: '0px', px: '16px', width: '100%' }}>
<ModalTitleBar
title="Add Labels to selected items"
title="Add labels to selected items"
onOpenChange={props.onOpenChange}
/>
</SpanBox>

View File

@ -112,7 +112,7 @@ export function ArticleActionsMenu(
</Button>
<Button
title="View Notebook (t)"
title="View notebook (t)"
style="articleActionIcon"
onClick={() => props.articleActionHandler('showHighlights')}
css={{
@ -127,7 +127,7 @@ export function ArticleActionsMenu(
</Button>
<Button
title="Edit Info (i)"
title="Edit info (i)"
style="articleActionIcon"
onClick={() => props.articleActionHandler('showEditModal')}
css={{

View File

@ -137,13 +137,13 @@ export function NotebookModal(props: NotebookModalProps): JSX.Element {
onSelect={() => {
exportHighlights()
}}
title="Export Notebook"
title="Export notebook"
/>
<DropdownOption
onSelect={() => {
setShowConfirmDeleteNote(true)
}}
title="Delete Article Note"
title="Delete article note"
/>
</Dropdown>
<CloseButton close={handleClose} />

View File

@ -52,7 +52,7 @@ export function VerticalArticleActionsMenu(
</Button>
<Button
title="Open Notebook (t)"
title="Open notebook (t)"
style="articleActionIcon"
onClick={() => props.articleActionHandler('showHighlights')}
css={{
@ -70,7 +70,7 @@ export function VerticalArticleActionsMenu(
</Button>
<Button
title="Edit Info (i)"
title="Edit info (i)"
style="articleActionIcon"
onClick={() => props.articleActionHandler('showEditModal')}
css={{
@ -142,7 +142,7 @@ export function VerticalArticleActionsMenu(
</Button>
)}
<Button
title="Display Settings (d)"
title="Display settings (d)"
style="articleActionIcon"
onClick={() => props.articleActionHandler('editDisplaySettings')}
css={{

View File

@ -584,5 +584,5 @@ function EditButton(props: EditButtonProps): JSX.Element {
{props.title}
</SpanBox>
</Link>
);
)
}

View File

@ -102,7 +102,7 @@ function ControlButtonBox(props: ReaderHeaderProps): JSX.Element {
}}
>
<Button
title="Reader Preferences (d)"
title="Reader preferences (d)"
style="articleActionIcon"
onClick={() => {
props.showDisplaySettingsModal(true)