1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Accessibility: Add setting to increase scrollbar and other small control sizes (#11627)

This commit is contained in:
Henry Heino
2025-01-13 08:33:42 -08:00
committed by GitHub
parent e177bffb1c
commit 35a0b22df2
23 changed files with 276 additions and 219 deletions

View File

@@ -4,7 +4,7 @@ import { fileExtension } from '@joplin/utils/path';
import setupLinkify from './MdToHtml/setupLinkify';
import validateLinks from './MdToHtml/validateLinks';
import { Options as NoteStyleOptions } from './noteStyle';
import { FsDriver, ItemIdToUrlHandler, MarkupRenderer, OptionsResourceModel, RenderOptions, RenderResult, RenderResultPluginAsset } from './types';
import { FsDriver, ItemIdToUrlHandler, MarkupRenderer, OptionsResourceModel, RenderOptions, RenderResult, RenderResultPluginAsset, ResourceInfos } from './types';
import hljs from './highlight';
import * as MarkdownIt from 'markdown-it';
@@ -161,8 +161,7 @@ export interface RuleOptions {
postMessageSyntax: string;
ResourceModel: OptionsResourceModel;
resourceBaseUrl: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
resources: any; // resourceId: Resource
resources: ResourceInfos; // resourceId: Resource
// Used by checkboxes to specify how it should be rendered
checkboxRenderingType?: number;
@@ -643,6 +642,7 @@ export default class MdToHtml implements MarkupRenderer {
const renderedBody = markdownIt.render(body, context);
let cssStrings = noteStyle(options.theme, {
scrollbarSize: options.scrollbarSize,
contentMaxWidth: options.contentMaxWidth,
});