Ver código fonte

fix porter.yaml modal styling (#3040)

jusrhee 3 anos atrás
pai
commit
8c5ba39adf

+ 1 - 1
dashboard/src/components/porter/Text.tsx

@@ -45,6 +45,6 @@ const StyledText = styled.div<{
   font-weight: ${props => props.weight || 400};
   color: ${props => props.color || props.theme.text.primary};
   font-size: ${props => props.size || 13}px;
-  display: flex;
+  display: inline-flex;
   align-items: center;
 `;

+ 12 - 17
dashboard/src/components/repo-selector/DetectContentsList.tsx

@@ -253,26 +253,21 @@ const DetectContentsList: React.FC<PropsType> = (props) => {
 
   const NoPorterYamlContent = () => (
     <div>
-      <h3>No porter.yaml detected</h3>
-      <p>
-        We were unable to find{" "}
-        <a
-          href="https://docs.porter.run/"
+      <Text size={16}>No porter.yaml detected</Text>
+      <Spacer y={1} />
+      <span>
+        <Text color="helper">
+          We were unable to find porter.yaml in your root directory. We recommend that you
+        </Text>{" "}<a
+          href="https://docs.porter.run/deploying-applications/application-porter-yaml-reference"
           target="_blank"
           rel="noopener noreferrer"
         >
-          porter.yaml
-        </a>{" "}
-        in your root directory. We recommend that you add{" "}
-        <a
-          href="https://docs.porter.run/"
-          target="_blank"
-          rel="noopener noreferrer"
-        >
-          porter.yaml
-        </a>{" "}
-        to your root directory or specify the subdirectory path here.
-      </p>
+          add porter.yaml
+        </a>{" "}<Text color="helper">
+          to your root directory or specify the subdirectory path here.
+        </Text>
+      </span>
     </div>
   );
   return (