diff --git a/apps/jsonthing-web/CHANGELOG.md b/apps/jsonthing-web/CHANGELOG.md index 47712b5..4f48e80 100644 --- a/apps/jsonthing-web/CHANGELOG.md +++ b/apps/jsonthing-web/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.4](https://github.com/lharti/jsonthing/compare/jsonthing-web@0.5.3...jsonthing-web@0.5.4) (2024-11-13) + + +### Bug Fixes + +* **web/doc:** document editor top bar layout on small screns ([3aab0c5](https://github.com/lharti/jsonthing/commit/3aab0c583e77781747d0799c76b450d135ba982c)) + + + + + ## [0.5.3](https://github.com/lharti/jsonthing/compare/jsonthing-web@0.5.2...jsonthing-web@0.5.3) (2024-11-13) diff --git a/apps/jsonthing-web/package.json b/apps/jsonthing-web/package.json index b5b1841..0b143fb 100644 --- a/apps/jsonthing-web/package.json +++ b/apps/jsonthing-web/package.json @@ -1,6 +1,6 @@ { "name": "jsonthing-web", - "version": "0.5.3", + "version": "0.5.4", "private": true, "scripts": { "dev": "next dev --turbo", diff --git a/apps/jsonthing-web/src/components/DocEditor/DocEditor.spec.tsx b/apps/jsonthing-web/src/components/DocEditor/DocEditor.spec.tsx index 8b10123..95bf028 100644 --- a/apps/jsonthing-web/src/components/DocEditor/DocEditor.spec.tsx +++ b/apps/jsonthing-web/src/components/DocEditor/DocEditor.spec.tsx @@ -54,10 +54,10 @@ describe('', () => { expect(container).toMatchInlineSnapshot(`

INITIAL_TITLE @@ -94,10 +94,10 @@ describe('', () => { expect(container).toMatchInlineSnapshot(`

INITIAL_TITLE @@ -249,6 +249,8 @@ describe('', () => { value: 'true', onChange: expect.any(Function), disabled: false, + + className: 'ml-auto', }) }) diff --git a/apps/jsonthing-web/src/components/DocEditor/DocEditor.tsx b/apps/jsonthing-web/src/components/DocEditor/DocEditor.tsx index 0cc0e11..f49a790 100644 --- a/apps/jsonthing-web/src/components/DocEditor/DocEditor.tsx +++ b/apps/jsonthing-web/src/components/DocEditor/DocEditor.tsx @@ -42,14 +42,15 @@ export const DocEditor: React.FC = ({ }, [editorContent]) return ( -
-
+
+
setEditorContent(newValue)} />
diff --git a/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.spec.tsx b/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.spec.tsx index ec2c61e..48ebf66 100644 --- a/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.spec.tsx +++ b/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.spec.tsx @@ -33,13 +33,9 @@ describe('', () => { expect(container).toMatchInlineSnapshot(`
-
- INITIAL_TITLE -
+ INITIAL_TITLE
`) diff --git a/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.tsx b/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.tsx index 37b09c0..de3b534 100644 --- a/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.tsx +++ b/apps/jsonthing-web/src/components/DocTitleEditor/DocTitleEditor.tsx @@ -25,11 +25,9 @@ export const DocTitleEditor: React.FC = ({ } return ( -
- updateTitle(newValue)} - /> -
+ updateTitle(newValue)} + /> ) } diff --git a/apps/jsonthing-web/src/components/ui/EditableHeading/EditableHeading.tsx b/apps/jsonthing-web/src/components/ui/EditableHeading/EditableHeading.tsx index ab432cf..ec3443a 100644 --- a/apps/jsonthing-web/src/components/ui/EditableHeading/EditableHeading.tsx +++ b/apps/jsonthing-web/src/components/ui/EditableHeading/EditableHeading.tsx @@ -53,7 +53,7 @@ export const EditableHeading: React.FC = ({ const isEditMode = uiMode === UIMode.EDIT return ( - <> +

= ({ > {isEditMode ? : } - +

) } diff --git a/apps/jsonthing-web/src/components/ui/EditableHeading/__snapshots__/EditableHeading.spec.tsx.snap b/apps/jsonthing-web/src/components/ui/EditableHeading/__snapshots__/EditableHeading.spec.tsx.snap index a6bb6dd..0031c92 100644 --- a/apps/jsonthing-web/src/components/ui/EditableHeading/__snapshots__/EditableHeading.spec.tsx.snap +++ b/apps/jsonthing-web/src/components/ui/EditableHeading/__snapshots__/EditableHeading.spec.tsx.snap @@ -2,83 +2,91 @@ exports[` should render edit ui mode: EditableHeading - Edit mode 1`] = `
-

+

- TEXT_VALUE -

-

+ + + + + +
`; exports[` should render with view ui mode by default: EditableHeading - View mode 1`] = `
-

+

- TEXT_VALUE -

-

+ + + + + + +
`;