mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 09:28:58 +08:00
fix: properly render \n and \t in log details + apply Geist Mono font to the logs (#5347)
* fix: properly render newline and tab in log details * fix: change font family and add tab size to properly render \t * feat: apply Geist Mono font to the logs
This commit is contained in:
parent
69a39531f0
commit
b0e355eb64
BIN
frontend/public/fonts/GeistMonoVF.woff2
Normal file
BIN
frontend/public/fonts/GeistMonoVF.woff2
Normal file
Binary file not shown.
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
.log-body {
|
.log-body {
|
||||||
font-family: 'SF Mono';
|
font-family: 'SF Mono';
|
||||||
font-family: 'Space Mono', monospace;
|
font-family: 'Geist Mono';
|
||||||
|
|
||||||
font-size: var(--font-size-sm);
|
font-size: var(--font-size-sm);
|
||||||
font-weight: var(--font-weight-normal);
|
font-weight: var(--font-weight-normal);
|
||||||
|
@ -49,7 +49,7 @@ export const ExpandIconWrapper = styled(Col)`
|
|||||||
export const RawLogContent = styled.div<RawLogContentProps>`
|
export const RawLogContent = styled.div<RawLogContentProps>`
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font-family: 'SF Mono', monospace;
|
font-family: 'SF Mono', monospace;
|
||||||
font-family: 'Space Mono', monospace;
|
font-family: 'Geist Mono';
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
.label {
|
.label {
|
||||||
color: var(--text-robin-400);
|
color: var(--text-robin-400);
|
||||||
font-family: SF Mono;
|
font-family: SF Mono;
|
||||||
font-family: 'Space Mono', monospace;
|
font-family: 'Geist Mono';
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: var(--font-weight-normal);
|
font-weight: var(--font-weight-normal);
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
|
@ -28,7 +28,7 @@ function JSONView({ logData }: JSONViewProps): JSX.Element {
|
|||||||
},
|
},
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
// fontFamily: 'SF Mono',
|
// fontFamily: 'SF Mono',
|
||||||
fontFamily: 'Space Mono',
|
fontFamily: 'Geist Mono',
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
lineHeight: '18px',
|
lineHeight: '18px',
|
||||||
colorDecorators: true,
|
colorDecorators: true,
|
||||||
|
@ -53,7 +53,7 @@ function Overview({
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
fontFamily: 'Space Mono',
|
fontFamily: 'Geist Mono',
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
lineHeight: '18px',
|
lineHeight: '18px',
|
||||||
colorDecorators: true,
|
colorDecorators: true,
|
||||||
|
@ -57,6 +57,8 @@
|
|||||||
background: rgba(22, 25, 34, 0.4);
|
background: rgba(22, 25, 34, 0.4);
|
||||||
|
|
||||||
.value-field {
|
.value-field {
|
||||||
|
font-family: 'Geist Mono';
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +289,13 @@ function TableView({
|
|||||||
return (
|
return (
|
||||||
<div className="value-field">
|
<div className="value-field">
|
||||||
<CopyClipboardHOC textToCopy={textToCopy}>
|
<CopyClipboardHOC textToCopy={textToCopy}>
|
||||||
<span style={{ color: Color.BG_SIENNA_400 }}>
|
<span
|
||||||
|
style={{
|
||||||
|
color: Color.BG_SIENNA_400,
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
|
tabSize: 4,
|
||||||
|
}}
|
||||||
|
>
|
||||||
{removeEscapeCharacters(fieldData.value)}
|
{removeEscapeCharacters(fieldData.value)}
|
||||||
</span>
|
</span>
|
||||||
</CopyClipboardHOC>
|
</CopyClipboardHOC>
|
||||||
|
@ -9,6 +9,6 @@ export const CardStyled = styled(Card)`
|
|||||||
height: 200px;
|
height: 200px;
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
padding: 0 16px 16px 16px;
|
padding: 0 16px 16px 16px;
|
||||||
font-family: 'Space Mono', monospace;
|
font-family: 'Geist Mono';
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -266,3 +266,10 @@ modal - 1000
|
|||||||
notifications - 2050
|
notifications - 2050
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Geist Mono';
|
||||||
|
src: local('Geist Mono'),
|
||||||
|
url('../public/fonts/GeistMonoVF.woff2') format('woff');
|
||||||
|
/* Add other formats if needed (e.g., woff2, truetype, opentype, svg) */
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user