diff --git a/docs/src/components/ShmCalculator/index.jsx b/docs/src/components/ShmCalculator/index.jsx index 11e64f17a..b7e13ed79 100644 --- a/docs/src/components/ShmCalculator/index.jsx +++ b/docs/src/components/ShmCalculator/index.jsx @@ -1,4 +1,5 @@ import React, { useState, useEffect } from "react"; +import Admonition from "@theme/Admonition"; import styles from "./styles.module.css"; const ShmCalculator = () => { @@ -71,35 +72,56 @@ const ShmCalculator = () => { count

-
-
- - setWidth(Number(e.target.value))} - /> + + The resolution below is the detect stream resolution, + not the record stream resolution. SHM size is + determined by the detect resolution used for object detection.{" "} + + Learn more about choosing a detect resolution. + + + + {width * height > 1280 * 720 && ( + + Using a detect resolution higher than 720p is not recommended. + Higher resolutions do not improve object detection accuracy and will + consume significantly more resources. + + )} + +
+
+
+ + setWidth(Number(e.target.value))} + /> +
-
- - setHeight(Number(e.target.value))} - /> +
+
+ + setHeight(Number(e.target.value))} + /> +
@@ -146,41 +168,29 @@ const ShmCalculator = () => {

Common Presets

+ - - -
diff --git a/docs/src/components/ShmCalculator/styles.module.css b/docs/src/components/ShmCalculator/styles.module.css index 2afbbdceb..5b48f4942 100644 --- a/docs/src/components/ShmCalculator/styles.module.css +++ b/docs/src/components/ShmCalculator/styles.module.css @@ -30,17 +30,7 @@ } .formGroup { - margin-bottom: 0.5rem; -} - -.row { - display: flex; - gap: 1rem; - margin-bottom: 0.5rem; -} - -.row .formGroup { - flex: 1; + margin-bottom: 1rem; } .label { @@ -139,35 +129,3 @@ flex-wrap: wrap; gap: 0.5rem; } - -.presetButton { - padding: 0.5rem 1rem; - background: var(--ifm-background-surface-color); - border: 1px solid var(--ifm-border-color); - border-radius: 6px; - color: var(--ifm-font-color-base); - cursor: pointer; - font-size: 0.85rem; - font-weight: var(--ifm-font-weight-normal); - transition: all 0.2s; -} - -[data-theme='light'] .presetButton { - background: #fff; - border: 1px solid #d0d7de; -} - -[data-theme='dark'] .presetButton { - background: #24292f; - border: 1px solid #3b434b; -} - -.presetButton:hover { - background: var(--ifm-color-primary); - color: #fff; - border-color: var(--ifm-color-primary); -} - -.presetButton:active { - transform: translateY(1px); -}