mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
fix: increase tags under title size
This commit is contained in:
@@ -27,11 +27,7 @@ function Header() {
|
||||
/>
|
||||
|
||||
{id && (
|
||||
<Flex
|
||||
alignItems="flex-start"
|
||||
justifyContent="flex-start"
|
||||
flexWrap="wrap"
|
||||
>
|
||||
<Flex alignItems="center" flexWrap="wrap">
|
||||
{tags.map((tag) => (
|
||||
<IconTag
|
||||
testId={`tag-${tag}`}
|
||||
@@ -40,10 +36,11 @@ function Header() {
|
||||
icon={Icon.Tag}
|
||||
title={`Click to remove`}
|
||||
onClick={() => setTag(tag)}
|
||||
styles={{ container: { mb: 1 } }}
|
||||
styles={{ container: { mb: 1 }, text: { fontSize: "body" } }}
|
||||
/>
|
||||
))}
|
||||
<Autosuggest
|
||||
sx={{ ml: 1 }}
|
||||
getData={() => db.tags.all}
|
||||
getFields={(item) => [item.title, item.alias]}
|
||||
limit={5}
|
||||
@@ -113,6 +110,7 @@ function Autosuggest({
|
||||
sx={{ width: "auto", border: "none", p: 0 }}
|
||||
placeholder="Add a tag..."
|
||||
data-test-id="editor-tag-input"
|
||||
fontSize="body"
|
||||
onChange={(e) => {
|
||||
const { value } = e.target;
|
||||
if (!value.length) {
|
||||
|
||||
@@ -31,7 +31,10 @@ function IconTag({ text, title, icon: Icon, onClick, styles, testId }) {
|
||||
py="2px"
|
||||
>
|
||||
<Icon size={11} color={styles?.icon?.color} sx={{ ...styles?.icon }} />
|
||||
<Text variant="body" p={0} fontSize={11} ml={"2px"}>
|
||||
<Text
|
||||
variant="body"
|
||||
sx={{ fontSize: 11, ml: "2px", p: 0, ...styles?.text }}
|
||||
>
|
||||
{text}
|
||||
</Text>
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user