Skip to content

Commit 468558e

Browse files
committed
msg
1 parent 1a8589f commit 468558e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

web/src/components/Docs/ContentList.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useContext } from "react";
2+
import styled from "styled-components";
23
import { ContentWrapper, ListItem, TextMessage } from "~components/layout/Content";
34
import { LazyList, ScrollableList } from "~components/Lists";
45
import { useFilteredData } from "./utils/filtering";
@@ -7,6 +8,13 @@ import { SchemaEnumView } from "./SchemaEnum";
78
import { Declaration } from "~components/Docs/api";
89
import { DeclarationsContext } from "~components/Docs/DeclarationsContext";
910

11+
const OffsetsNote = styled.div`
12+
font-size: 14px;
13+
color: ${(props) => props.theme.textDim};
14+
text-align: center;
15+
padding: 8px 4px 0;
16+
`;
17+
1018
function renderItem(declaration: Declaration) {
1119
let children: React.JSX.Element;
1220
switch (declaration.kind) {
@@ -42,6 +50,7 @@ export function ContentList() {
4250
) : (
4351
<TextMessage>Choose a class or enum from the sidebar, or use search...</TextMessage>
4452
)}
53+
{data.length > 0 && <OffsetsNote>Offsets are from Windows build xxx</OffsetsNote>}
4554
</ContentWrapper>
4655
);
4756
}

0 commit comments

Comments
 (0)