width of item is fixed`

pull/5370/head
lianahus 3 years ago committed by Aniket
parent 756be1dc1b
commit 80d1c7f7b8
  1. 2
      apps/vyper/src/app/app.css
  2. 4
      apps/vyper/src/app/app.tsx
  3. 5
      apps/vyper/src/app/components/VyperResult.tsx

@ -49,7 +49,7 @@ html, body, #root, main {
} }
#compile-btn { #compile-btn {
width: 90%; width: 100%;
} }
#compile-btn * { #compile-btn * {

@ -83,7 +83,7 @@ const App: React.FC = () => {
</a> </a>
</header> </header>
<section> <section>
<div className="px-3 w-100"> <div className="px-4 w-100">
<Button data-id="add-repository" className="w-100 text-dark w-100 bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}> <Button data-id="add-repository" className="w-100 text-dark w-100 bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}>
Clone Vyper examples repository Clone Vyper examples repository
</Button> </Button>
@ -107,7 +107,7 @@ const App: React.FC = () => {
environment={state.environment} environment={state.environment}
/> />
<WarnRemote environment={state.environment} /> <WarnRemote environment={state.environment} />
<div id="compile-btn"> <div className="px-4" id="compile-btn">
<CompilerButton <CompilerButton
compilerUrl={compilerUrl()} compilerUrl={compilerUrl()}
contract={contract} contract={contract}

@ -10,7 +10,6 @@ import Button from 'react-bootstrap/Button';
import JSONTree from 'react-json-view' import JSONTree from 'react-json-view'
import { CopyToClipboard } from '@remix-ui/clipboard' import { CopyToClipboard } from '@remix-ui/clipboard'
interface VyperResultProps { interface VyperResultProps {
output?: VyperCompilationOutput; output?: VyperCompilationOutput;
} }
@ -27,7 +26,6 @@ function VyperResult({ output }: VyperResultProps) {
<div id="result"> <div id="result">
<p className="my-3">No contract compiled yet.</p> <p className="my-3">No contract compiled yet.</p>
</div> </div>
) )
@ -40,7 +38,8 @@ function VyperResult({ output }: VyperResultProps) {
overflowX: "hidden", overflowX: "hidden",
textOverflow: "ellipsis" textOverflow: "ellipsis"
}}>{output.message}</pre> }}>{output.message}</pre>
</div>) </div>
)
} }
return ( return (

Loading…
Cancel
Save