🐛(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:
@@ -6,6 +6,9 @@ import {
|
|||||||
import { forEach, isArray } from 'lodash';
|
import { forEach, isArray } from 'lodash';
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { css } from 'styled-components';
|
||||||
|
|
||||||
|
import { Text } from '@/components';
|
||||||
|
|
||||||
type Block = {
|
type Block = {
|
||||||
type: string;
|
type: string;
|
||||||
@@ -83,8 +86,18 @@ export function MarkdownButton() {
|
|||||||
mainTooltip={t('Convert Markdown')}
|
mainTooltip={t('Convert Markdown')}
|
||||||
onClick={handleConvertMarkdown}
|
onClick={handleConvertMarkdown}
|
||||||
className="--docs--editor-markdown-button"
|
className="--docs--editor-markdown-button"
|
||||||
>
|
label="M"
|
||||||
M
|
icon={
|
||||||
</Components.FormattingToolbar.Button>
|
<Text
|
||||||
|
aria-hidden={true}
|
||||||
|
$css={css`
|
||||||
|
font-family: var(--c--theme--font--families--base);
|
||||||
|
`}
|
||||||
|
$weight="bold"
|
||||||
|
>
|
||||||
|
M
|
||||||
|
</Text>
|
||||||
|
}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,6 +136,10 @@ export const cssEditor = css`
|
|||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bn-toolbar {
|
||||||
|
max-width: 95vw;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Quotes
|
* Quotes
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user