Two visual fixes to MethodPage.vue, from the deployed page. Width: the content container was 820px and felt cramped. Raise it to 1080px so the page uses more of the viewport and the sources table has room, while capping the running prose (lede, ODD blocks, section intros, strategies, references, closing) at a 760px reading measure so line length stays comfortable. The table and section rules span the full container. Scrollbar: the sources table's horizontal scrollbar overlapped the last row's text. Reserve a strip with padding-bottom: 14px inside the overflow-x:auto container so the scrollbar sits clear of the content, and style it thin and themed (scrollbar-width / -color, plus a webkit fallback) in both themes. Verified on a local prod build at desktop width and 390px. |
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .oxlintrc.json | ||
| .prettierignore | ||
| .prettierrc.json | ||
| env.d.ts | ||
| eslint.config.ts | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| tsconfig.vitest.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
web
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Run Unit Tests with Vitest
npm run test:unit
Lint with ESLint
npm run lint