Skip to content

Commit c8f36e9

Browse files
authored
Default monitors to a monospace font (#1051)
1 parent c379a62 commit c8f36e9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/redux-devtools-app/src/containers/monitors/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Slider extends Component<Props> {
2727
}
2828
render() {
2929
return (
30-
<SliderWrapper>
30+
<SliderWrapper className="slider">
3131
<SliderMonitor
3232
{...this.props.liftedState}
3333
// eslint-disable-next-line @typescript-eslint/ban-ts-comment

packages/redux-devtools-ui/src/Container/styles/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export const MainContainerWrapper = styled.div`
2525
2626
.CodeMirror div,
2727
pre,
28-
.monitor-LogMonitor * {
28+
.monitor div,
29+
.slider div {
2930
font-family: ${(props) =>
3031
props.theme.codeFontFamily || props.theme.fontFamily || 'monospace'};
3132
}

packages/redux-devtools-ui/test/__snapshots__/Container.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Container renders correctly 1`] = `
44
<div
5-
class="sc-bdvvtL bKcxHw"
5+
class="sc-bdvvtL bHghii"
66
>
77
Text
88
</div>

0 commit comments

Comments
 (0)