From 758730b523d81357a650b109aa25de5a4c110289 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 6 Jun 2025 23:14:37 +0200 Subject: [PATCH] a lot of ui fixes --- src/Components/AppShell/NavBar.tsx | 2 +- src/Components/Input/RichTextEditor.tsx | 1 - src/Components/Input/TextEditorMenu.tsx | 94 +++++---- .../PopupStartEndInput.tsx | 4 +- .../ItemPopupComponents/PopupTextInput.tsx | 2 +- src/Components/Profile/ProfileForm.tsx | 4 +- src/Components/Profile/ProfileView.tsx | 2 +- .../Profile/Subcomponents/ProfileTextForm.tsx | 4 +- .../Profile/Subcomponents/TagsWidget.tsx | 4 +- src/Components/Profile/Templates/TabsForm.tsx | 197 +++++++----------- src/Components/Profile/Templates/TabsView.tsx | 26 +-- src/Components/Templates/Tabs.tsx | 65 ++++++ 12 files changed, 208 insertions(+), 197 deletions(-) create mode 100644 src/Components/Templates/Tabs.tsx diff --git a/src/Components/AppShell/NavBar.tsx b/src/Components/AppShell/NavBar.tsx index d8631fa2..51f521b9 100644 --- a/src/Components/AppShell/NavBar.tsx +++ b/src/Components/AppShell/NavBar.tsx @@ -38,7 +38,7 @@ export default function NavBar({ appName }: { appName: string }) {
{ - - const editorState = useEditorState({ editor, selector: (ctx) => { @@ -57,10 +58,10 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => { return ( <> -
    +
    • editor.chain().focus().undo().run()} > @@ -69,7 +70,7 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • editor.chain().focus().redo().run()} > @@ -78,7 +79,7 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • editor.chain().focus().toggleBold().run()} > @@ -87,7 +88,7 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • editor.chain().focus().toggleItalic().run()} > @@ -95,35 +96,45 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • -
      editor.chain().focus().toggleHeading({ level: 1 }).run()} - > - -
      +
      + + + +
        +
      • +
        editor.chain().focus().toggleHeading({ level: 1 }).run()} + > + +
        +
      • +
      • +
        editor.chain().focus().toggleHeading({ level: 2 }).run()} + > + +
        +
      • +
      • +
        editor.chain().focus().toggleHeading({ level: 3 }).run()} + > + +
        +
      • +
      +
    • +
    • editor.chain().focus().toggleHeading({ level: 2 }).run()} - > - -
      -
    • -
    • -
      editor.chain().focus().toggleHeading({ level: 3 }).run()} - > - -
      -
    • -
    • -
      editor.chain().focus().toggleBulletList().run()} > @@ -132,7 +143,7 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • editor.chain().focus().toggleOrderedList().run()} > @@ -141,16 +152,7 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • editor.chain().focus().toggleCodeBlock().run()} - > - -
      -
    • -
    • -
      editor.chain().focus().toggleBlockquote().run()} > @@ -159,7 +161,7 @@ export const TextEditorMenu = ({ editor }: { editor: Editor }) => {
    • editor.chain().focus().setHorizontalRule().run()} > diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx index 1106184d..88405f1f 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx @@ -26,7 +26,7 @@ export const PopupStartEndInput = ({ placeholder='start' dataField='start' inputStyle='tw:text-sm tw:px-2' - labelTitle={showLabels ? 'start' : ''} + labelTitle={showLabels ? 'Start' : ''} defaultValue={item && item.start ? item.start.substring(0, 10) : ''} autocomplete='one-time-code' updateFormValue={updateStartValue} @@ -36,7 +36,7 @@ export const PopupStartEndInput = ({ placeholder='end' dataField='end' inputStyle='tw:text-sm tw:px-2' - labelTitle={showLabels ? 'end' : ''} + labelTitle={showLabels ? 'End' : ''} defaultValue={item && item.end ? item.end.substring(0, 10) : ''} autocomplete='one-time-code' updateFormValue={updateEndValue} diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx index e2472fab..be0331df 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx @@ -23,7 +23,7 @@ export const PopupTextInput = ({ placeholder={placeholder} inputStyle={style} type='text' - containerStyle={'tw:mt-4'} + containerStyle={'tw:mt-4 tw:mb-2'} > ) } diff --git a/src/Components/Profile/ProfileForm.tsx b/src/Components/Profile/ProfileForm.tsx index 86327112..def9836f 100644 --- a/src/Components/Profile/ProfileForm.tsx +++ b/src/Components/Profile/ProfileForm.tsx @@ -158,7 +158,7 @@ export function ProfileForm() { <>
      )} -
      +