- {props.label &&
}
+ {props.label &&
}
diff --git a/front/src/components/SelectUser.jsx b/front/src/components/SelectUser.jsx
deleted file mode 100644
index ff98e0ffe..000000000
--- a/front/src/components/SelectUser.jsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import React, { useCallback } from 'react'
-import { useDispatch } from 'react-redux'
-import { Users } from 'react-feather'
-
-import Select from './Select'
-
-import styles from './articles.module.scss'
-import buttonStyles from './button.module.scss'
-import clsx from 'clsx'
-import { useActiveUserId } from '../hooks/user'
-
-export default function SelectUser ({ accounts }) {
- const dispatch = useDispatch()
-
- const currentUserId = useActiveUserId()
- const setCurrentUserId = useCallback((userId) => dispatch({ type: 'USER_PREFERENCES_TOGGLE', key: 'currentUser', value: userId }), [])
-
- const handleCurrentUserChange = useCallback((event) => {
- setCurrentUserId(event.target.value)
- }, [currentUserId])
-
- return (
-
-
-
)
-}
diff --git a/front/src/components/TagCreate.module.scss b/front/src/components/TagCreate.module.scss
index 3265e472d..ecfad16e3 100644
--- a/front/src/components/TagCreate.module.scss
+++ b/front/src/components/TagCreate.module.scss
@@ -21,4 +21,10 @@ fieldset {
.create {
margin: 2rem 0 1rem;
+
+ > form {
+ display: flex;
+ flex-direction: column;
+ gap: 0.75rem;
+ }
}
diff --git a/front/src/components/UserInfos.jsx b/front/src/components/UserInfos.jsx
index c7075f9de..311a54b5d 100644
--- a/front/src/components/UserInfos.jsx
+++ b/front/src/components/UserInfos.jsx
@@ -1,5 +1,6 @@
import React, { useState, useCallback } from 'react'
import { Check, Clipboard, Loader } from 'react-feather'
+import { useTranslation } from 'react-i18next'
import { useSelector, useDispatch, shallowEqual } from 'react-redux'
import { CopyToClipboard } from 'react-copy-to-clipboard'
@@ -15,6 +16,7 @@ import MonacoYamlEditor from './Write/providers/monaco/YamlEditor'
export default function UserInfos () {
const dispatch = useDispatch()
+ const { t } = useTranslation()
const runQuery = useGraphQL()
const activeUser = useSelector(state => state.activeUser, shallowEqual)
const zoteroToken = useSelector(state => state.activeUser.zoteroToken)
@@ -26,7 +28,10 @@ export default function UserInfos () {
const [yaml, setYaml] = useState(activeUser.yaml)
const [isSaving, setIsSaving] = useState(false)
- const updateActiveUserDetails = useCallback((payload) => dispatch({ type: `UPDATE_ACTIVE_USER_DETAILS`, payload }), [])
+ const updateActiveUserDetails = useCallback((payload) => dispatch({
+ type: `UPDATE_ACTIVE_USER_DETAILS`,
+ payload
+ }), [])
const clearZoteroToken = useCallback(() => dispatch({ type: 'CLEAR_ZOTERO_TOKEN' }), [])
const handleYamlUpdate = useCallback((yaml) => setYaml(yaml), [])
@@ -52,98 +57,96 @@ export default function UserInfos () {
}, [activeUser._id, yaml, displayName, firstName, lastName, institution])
return (<>
-
-
-
+
+
+
+ <>{activeUser.email}>
+
+ {activeUser.username && <>{activeUser.username}>
+ }
+
+ <>{activeUser.authType === 'oidc' ? 'OpenID (External)' : 'Password'}>
+
+
+ <>
+ {sessionToken}
+
+
+
+ >
+
+
+ {activeUser._id}
+
+ {activeUser.admin && ✔️}
+
+
+
+
+
+
-
-
-
-
-
- <>{activeUser.email}>
-
- {activeUser.username && <>{activeUser.username}>}
-
- <>{activeUser.authType === 'oidc' ? 'OpenID (External)' : 'Password'}>
-
-
- <>
- {sessionToken}
-
-
-
- >
-
-
- {activeUser._id}
-
- {activeUser.admin && ✔️}
-
-
-
-
-
-
-
- >
+
+ >
)
}
diff --git a/front/src/components/articleCreate.module.scss b/front/src/components/articleCreate.module.scss
index 88549a0e6..a0fabe681 100644
--- a/front/src/components/articleCreate.module.scss
+++ b/front/src/components/articleCreate.module.scss
@@ -2,9 +2,6 @@
@use '../styles/variables' as *;
.titleField {
- label {
- flex-basis: 5rem;
- }
input {
width: 100%;
}
@@ -25,16 +22,19 @@
}
}
-.field {
+.form {
display: flex;
- margin-bottom: 0.5rem;
- margin-top: 0.5rem;
+ flex-direction: column;
+ gap: 1rem;
+}
+.field {
+ display: flex;
+ flex-direction: column;
+ padding: 0 0 0.25rem;
+
> label {
- flex-shrink: 0;
- margin-right: 1rem;
- padding: calc(0.5em - 1px) 0;
- flex-basis: 5rem;
- text-align: end;
+ font-weight: 600;
+ padding: 0 0 0.25rem;
}
}
diff --git a/front/src/components/corpus/CorpusCreate.jsx b/front/src/components/corpus/CorpusCreate.jsx
index eb8e50ace..1e379fde5 100644
--- a/front/src/components/corpus/CorpusCreate.jsx
+++ b/front/src/components/corpus/CorpusCreate.jsx
@@ -58,7 +58,7 @@ export default function CorpusCreate ({onSubmit}) {
return (
-