Skip to content
Snippets Groups Projects
Verified Commit 6253e0f8 authored by Dorian Koch's avatar Dorian Koch
Browse files

Fix layout (#40), add env variable to readme

parent 3929864a
Branches dork2
Tags
1 merge request!11Fix #40 and update packages
Pipeline #6162 canceled
......@@ -6,7 +6,7 @@ Install nodejs with version >=18.17.0 and npm (which should come pre-packaged wi
Running `npm run dev` is the recommended way to start the development server (compiling and serving files over http, automatically refreshing components when their code is updated etc.)
`npm run dev`: Starts development server
`NEXT_PUBLIC_API_URL_PREFIX=http://localhost:5000 npm run dev`: Starts development server
`npm run build`: Compiles website into static files, output placed in `out/`
......
......@@ -103,11 +103,7 @@ export default function AnnouncementComponent({
allowMarkdown={true}
/>
) : (
<span
className={
"flex-grow-1 p-children-inline disable-last-paragraph-spacing"
}
>
<span className={"flex-grow-1 disable-last-paragraph-spacing"}>
<StylizedText markdown={true}>{announcement.text}</StylizedText>
</span>
)}
......
......@@ -153,7 +153,7 @@ export function LectureListItem({
initialValue={lecture.title}
/>
</li>
{lecture.speaker ? (
{lecture.speaker && (
<li>
Gehalten von{" "}
<EmbeddedOMFieldComponent
......@@ -163,10 +163,9 @@ export function LectureListItem({
field_type="string"
initialValue={lecture.speaker}
allowMarkdown={true}
inline
/>
</li>
) : (
<></>
)}
<li>
......
......@@ -112,6 +112,7 @@ export function EmbeddedOMFieldComponent({
field_type,
initialValue,
allowMarkdown = false,
inline = false,
className = "",
}: {
object_type: string;
......@@ -120,6 +121,7 @@ export function EmbeddedOMFieldComponent({
field_type: "boolean" | "string" | "datetime" | "semester_string";
initialValue: any;
allowMarkdown?: boolean;
inline?: boolean;
className?: string;
}) {
const api = useBackendContext();
......@@ -243,7 +245,11 @@ export function EmbeddedOMFieldComponent({
}
return (
<span
className={className + " p-children-inline disable-last-paragraph-spacing"}
className={
className +
(inline ? " p-children-inline" : "") +
" disable-last-paragraph-spacing"
}
onDoubleClick={() => {
if (!editMode) return;
beforeEditingValue.current = value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment