mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
fix: scale sideMenu labels according to computed font size
This commit is contained in:
parent
addf8956e3
commit
1a7deec443
|
@ -7,7 +7,7 @@ import styled, { css, ResolvedThemeInterface } from '../../styled-components';
|
||||||
export const OperationBadge = styled.span.attrs((props: { type: string }) => ({
|
export const OperationBadge = styled.span.attrs((props: { type: string }) => ({
|
||||||
className: `operation-type ${props.type}`,
|
className: `operation-type ${props.type}`,
|
||||||
}))<{ type: string }>`
|
}))<{ type: string }>`
|
||||||
width: 32px;
|
width: 9ex;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: ${props => props.theme.typography.code.fontSize};
|
height: ${props => props.theme.typography.code.fontSize};
|
||||||
line-height: ${props => props.theme.typography.code.fontSize};
|
line-height: ${props => props.theme.typography.code.fontSize};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user