Skip to content

Commit

Permalink
Wrap console text (#496)
Browse files Browse the repository at this point in the history
* Wrap console text

* Review

* Add missing file
  • Loading branch information
andresmgot authored Aug 17, 2018
1 parent 54bca50 commit 2295d03
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
22 changes: 10 additions & 12 deletions dashboard/src/components/DeploymentForm/DeploymentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,17 @@ class DeploymentForm extends React.Component<IDeploymentFormProps, IDeploymentFo
return (
<div>
<form className="container padding-b-bigger" onSubmit={this.handleDeploy}>
{this.props.error && (
<DeploymentErrors
{...this.props}
kubeappsNamespace={kubeappsNamespace}
chartName={chartID.split("/")[0]}
releaseName={releaseName}
repo={chartID.split("/")[1]}
version={version.attributes.version}
/>
)}
<div className="row">
<div className="col-8">
{this.props.error && (
<DeploymentErrors
{...this.props}
kubeappsNamespace={kubeappsNamespace}
chartName={chartID.split("/")[0]}
releaseName={releaseName}
repo={chartID.split("/")[1]}
version={version.attributes.version}
/>
)}
</div>
<div className="col-12">
<h2>{this.props.chartID}</h2>
</div>
Expand Down
3 changes: 3 additions & 0 deletions dashboard/src/components/ErrorAlert/UnexpectedErrorAlert.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.terminal__error {
word-break: break-all;
}
5 changes: 3 additions & 2 deletions dashboard/src/components/ErrorAlert/UnexpectedErrorAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from "react";
import { X } from "react-feather";

import ErrorPageHeader from "./ErrorAlertHeader";
import "./UnexpectedErrorAlert.css";

interface IUnexpectedErrorPage {
raw?: boolean;
Expand Down Expand Up @@ -35,8 +36,8 @@ class UnexpectedErrorPage extends React.Component<IUnexpectedErrorPage> {
if (this.props.raw) {
message = (
<div className="error__content margin-l-enormous">
<section className="Terminal elevation-1">
<span className="type-color-white">{this.props.text}</span>
<section className="Terminal terminal__error elevation-1 type-color-white">
{this.props.text}
</section>
</div>
);
Expand Down

0 comments on commit 2295d03

Please sign in to comment.