diff --git a/frontend/src/components/DocumentUnitTexts.vue b/frontend/src/components/DocumentUnitTexts.vue index f1f5b3f78b..025977cf1e 100644 --- a/frontend/src/components/DocumentUnitTexts.vue +++ b/frontend/src/components/DocumentUnitTexts.vue @@ -17,7 +17,6 @@ const data = computed(() => name: item.name, label: item.label, aria: item.label, - fieldSize: item.fieldSize, value: props.texts[item.name as keyof Texts], } }), @@ -39,7 +38,6 @@ const data = computed(() => :aria-label="item.aria" class="outline outline-2 outline-blue-900" editable - :field-size="item.fieldSize" :value="item.value" @update-value="emit('updateValue', [item.id, $event])" /> diff --git a/frontend/src/components/FileViewer.vue b/frontend/src/components/FileViewer.vue index ca91b51d54..2bdcb8664a 100644 --- a/frontend/src/components/FileViewer.vue +++ b/frontend/src/components/FileViewer.vue @@ -91,7 +91,7 @@ onMounted(async () => { /> - + v-else class="h-[65vh] overflow-scroll border-1 border-solid border-gray-400" > - + diff --git a/frontend/src/fields/caselaw/textFields.ts b/frontend/src/fields/caselaw/textFields.ts index 3df82766dd..5b32e86921 100644 --- a/frontend/src/fields/caselaw/textFields.ts +++ b/frontend/src/fields/caselaw/textFields.ts @@ -1,15 +1,13 @@ -import { FieldSize } from "../../shared/components/input/FieldSize" - -function defineTextEntry(name: string, label: string, fieldSize: FieldSize) { - return { name, label, fieldSize } +function defineTextEntry(name: string, label: string) { + return { name, label } } export const texts = [ - defineTextEntry("decisionName", "Entscheidungsname", "small"), - defineTextEntry("headline", "Titelzeile", "small"), - defineTextEntry("guidingPrinciple", "Leitsatz", "medium"), - defineTextEntry("headnote", "Orientierungssatz", "small"), - defineTextEntry("tenor", "Tenor", "medium"), - defineTextEntry("reasons", "Gründe", "large"), - defineTextEntry("caseFacts", "Tatbestand", "large"), - defineTextEntry("decisionReasons", "Entscheidungsgründe", "large"), + defineTextEntry("decisionName", "Entscheidungsname"), + defineTextEntry("headline", "Titelzeile"), + defineTextEntry("guidingPrinciple", "Leitsatz"), + defineTextEntry("headnote", "Orientierungssatz"), + defineTextEntry("tenor", "Tenor"), + defineTextEntry("reasons", "Gründe"), + defineTextEntry("caseFacts", "Tatbestand"), + defineTextEntry("decisionReasons", "Entscheidungsgründe"), ] diff --git a/frontend/src/routes/kitchensink/index/textEditor.vue b/frontend/src/routes/kitchensink/index/textEditor.vue index 67e0a06637..551e2e7960 100644 --- a/frontend/src/routes/kitchensink/index/textEditor.vue +++ b/frontend/src/routes/kitchensink/index/textEditor.vue @@ -10,47 +10,16 @@ import TextEditor from "@/shared/components/input/TextEditor.vue" Resize the window to see different views of text editor.

- + - - - - - - - - - - - - - + (), { value: undefined, - fieldSize: "small", editable: false, ariaLabel: "Editor Feld", }) @@ -223,6 +221,15 @@ const buttons = computed(() => [ }, ]) +const fixButtons = [ + { + type: "", + icon: IconExpand, + ariaLabel: "fullview", + callback: () => (editorExpanded.value = !editorExpanded.value), + }, +] + const editorButtons = computed(() => buttons.value.map((button) => ({ ...button, @@ -237,6 +244,12 @@ const containerWidth = ref() const maxButtonEntries = computed(() => Math.floor((containerWidth.value - 100) / buttonSize), ) + +const editorExpanded = ref(false) +const editorSize = computed(() => { + if (props.editable) return editorExpanded.value ? "h-640" : "h-320" + else return "" +}) const { collapsedButtons } = useCollapsingMenuBar( editorButtons, maxButtonEntries, @@ -291,16 +304,20 @@ const resizeObserver = new ResizeObserver((entries) => { @toggle="handleButtonClick" /> +
+ +

diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 0f5c85769f..5542d35b9d 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -64,6 +64,7 @@ module.exports = { }, spacing: { unset: "unset", + 640: "40rem", }, }, },