Add more colors
This commit is contained in:
parent
92c185cb0a
commit
4f59a53af5
3 changed files with 3 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ def bootstrap_trace_endpoints(app: FastAPI) -> None:
|
||||||
tags=["traces"],
|
tags=["traces"],
|
||||||
)
|
)
|
||||||
|
|
||||||
@router.post("/", status_code=status.HTTP_200_OK, response_model=List[Trace])
|
@router.post("", status_code=status.HTTP_200_OK, response_model=List[Trace])
|
||||||
def query_traces(
|
def query_traces(
|
||||||
query: Query,
|
query: Query,
|
||||||
skip: int = 0,
|
skip: int = 0,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
:root {
|
:root {
|
||||||
--important-color: #a30808;
|
|
||||||
--background-color: #edf5f6;
|
--background-color: #edf5f6;
|
||||||
--small-padding: 10px;
|
--small-padding: 10px;
|
||||||
--medium-padding: 20px;
|
--medium-padding: 20px;
|
||||||
|
|
@ -84,7 +83,6 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
.environment {
|
.environment {
|
||||||
background-color: var(--important-color);
|
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -152,7 +150,6 @@ main > header .placeholder {
|
||||||
}
|
}
|
||||||
|
|
||||||
.configuration-item {
|
.configuration-item {
|
||||||
border-left: 2px solid var(--important-color);
|
|
||||||
padding-left: var(--small-padding);
|
padding-left: var(--small-padding);
|
||||||
margin: var(--medium-padding);
|
margin: var(--medium-padding);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ def create_dash_app(function_name: str, function_docs: str) -> Flask:
|
||||||
html.Div(
|
html.Div(
|
||||||
html.P("PRODUCTION" if get_context().is_production else "DEVELOPMENT"),
|
html.P("PRODUCTION" if get_context().is_production else "DEVELOPMENT"),
|
||||||
className="environment",
|
className="environment",
|
||||||
|
style={"background": accent_color},
|
||||||
),
|
),
|
||||||
html.Header(
|
html.Header(
|
||||||
[
|
[
|
||||||
|
|
@ -97,6 +98,7 @@ def create_dash_app(function_name: str, function_docs: str) -> Flask:
|
||||||
html.P(str(value)),
|
html.P(str(value)),
|
||||||
],
|
],
|
||||||
className="configuration-item",
|
className="configuration-item",
|
||||||
|
style={"border-left": f"2px solid {accent_color}"},
|
||||||
)
|
)
|
||||||
for key, value in config.items()
|
for key, value in config.items()
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue