diff --git a/hyperglass/ui/components/Header.js b/hyperglass/ui/components/Header.js
index 93a5fec..64215c3 100644
--- a/hyperglass/ui/components/Header.js
+++ b/hyperglass/ui/components/Header.js
@@ -61,6 +61,8 @@ export default ({ height, isSubmitting, handleFormReset, ...props }) => {
justifyContent="center"
mb={[null, isSubmitting ? "auto" : null]}
mt={[null, isSubmitting ? null : "auto"]}
+ maxW="100%"
+ flex="1 0 0"
>
diff --git a/hyperglass/ui/components/ResolvedTarget.js b/hyperglass/ui/components/ResolvedTarget.js
index ac94817..82fb16c 100644
--- a/hyperglass/ui/components/ResolvedTarget.js
+++ b/hyperglass/ui/components/ResolvedTarget.js
@@ -3,6 +3,7 @@ import { Button, Icon, Spinner, Stack, Tag, Text, Tooltip, useColorMode } from "
import useAxios from "axios-hooks";
import format from "string-format";
import useConfig from "~/components/HyperglassProvider";
+import useMedia from "~/components/MediaProvider";
format.extend(String.prototype, {});
@@ -11,6 +12,7 @@ const labelBgSuccess = { dark: "success", light: "success" };
const ResolvedTarget = React.forwardRef(({ fqdnTarget, setTarget, queryTarget }, ref) => {
const { colorMode } = useColorMode();
+ const { mediaSize } = useMedia();
const config = useConfig();
const labelBgStatus = { true: labelBgSuccess[colorMode], false: labelBg[colorMode] };
const dnsUrl = config.web.dns_provider.url;
@@ -56,11 +58,12 @@ const ResolvedTarget = React.forwardRef(({ fqdnTarget, setTarget, queryTarget },
isInline
w="100%"
justifyContent={data4?.Answer && data6?.Answer ? "space-between" : "flex-end"}
+ flexWrap="wrap"
>
{loading4 ||
error4 ||
(findAnswer(data4) && (
-
+
+
(
- {text}
+ {text}
);
const SubtitleOnly = React.forwardRef(({ text, size = "md", ...props }, ref) => (
- {text}
+
+ {text}
+
));
@@ -31,7 +34,7 @@ const AnimatedSubtitle = motion.custom(SubtitleOnly);
const textAlignment = { false: ["right", "center"], true: ["left", "center"] };
const TextOnly = ({ text, mediaSize, showSubtitle, ...props }) => (
-
+
{showSubtitle && }
@@ -85,7 +88,7 @@ export default React.forwardRef(({ onClick, isSubmitting, ...props }, ref) => {
_hover={{ textDecoration: "none" }}
justifyContent={btnJustify[isSubmitting]}
px={0}
- maxW={["90%", "90%", "25%", "25%"]}
+ maxW="100%"
{...props}
>