🐛(frontend) fix button markdown not visible

On smaller screens, the markdown button in the
toolbar was not every time visible.
We fix this issue.
This commit is contained in:
Anthony LC
2025-10-01 18:45:18 +02:00
parent 0b555eed9f
commit a1463e0a10
2 changed files with 20 additions and 3 deletions

View File

@@ -6,6 +6,9 @@ import {
import { forEach, isArray } from 'lodash';
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { css } from 'styled-components';
import { Text } from '@/components';
type Block = {
type: string;
@@ -83,8 +86,18 @@ export function MarkdownButton() {
mainTooltip={t('Convert Markdown')}
onClick={handleConvertMarkdown}
className="--docs--editor-markdown-button"
>
M
</Components.FormattingToolbar.Button>
label="M"
icon={
<Text
aria-hidden={true}
$css={css`
font-family: var(--c--theme--font--families--base);
`}
$weight="bold"
>
M
</Text>
}
/>
);
}

View File

@@ -136,6 +136,10 @@ export const cssEditor = css`
border-left: none;
}
.bn-toolbar {
max-width: 95vw;
}
/**
* Quotes
*/