update style and wording of browser support for connection types
This commit is contained in:
@@ -52,7 +52,7 @@ const links: { [key: string]: string } = {
|
|||||||
|
|
||||||
const listFormatter = new Intl.ListFormat("en", {
|
const listFormatter = new Intl.ListFormat("en", {
|
||||||
style: "long",
|
style: "long",
|
||||||
type: "conjunction",
|
type: "disjunction",
|
||||||
});
|
});
|
||||||
|
|
||||||
const ErrorMessage = ({ missingFeatures }: FeatureErrorProps) => {
|
const ErrorMessage = ({ missingFeatures }: FeatureErrorProps) => {
|
||||||
@@ -78,16 +78,16 @@ const ErrorMessage = ({ missingFeatures }: FeatureErrorProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Subtle className="flex flex-col items-start gap-2 text-slate-900 bg-red-200/80 p-4 rounded-md">
|
<Subtle className="flex flex-col items-start gap-2 bg-red-500 p-4 rounded-md">
|
||||||
<div className="flex items-center gap-2 w-full">
|
<div className="flex items-center gap-2 w-full">
|
||||||
<AlertCircle size={40} className="mr-2 shrink-0" />
|
<AlertCircle size={40} className="mr-2 shrink-0 text-white" />
|
||||||
<div className="flex flex-col gap-3">
|
<div className="flex flex-col gap-3">
|
||||||
<p className="text-sm">
|
<p className="text-sm text-white">
|
||||||
{browserFeatures.length > 0 && (
|
{browserFeatures.length > 0 && (
|
||||||
<>
|
<>
|
||||||
This application requires{" "}
|
This connection type requires{" "}
|
||||||
{formatFeatureList(browserFeatures)}. Please use a
|
{formatFeatureList(browserFeatures)}. Please use a
|
||||||
Chromium-based browser like Chrome or Edge.
|
supported browser, like Chrome or Edge.
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{needsSecureContext && (
|
{needsSecureContext && (
|
||||||
|
|||||||
Reference in New Issue
Block a user