Updated frame styles

This commit is contained in:
Peter Zimon 2022-07-05 10:34:22 +02:00
parent 32c396d75b
commit 0eeff657de
4 changed files with 43 additions and 4 deletions

View File

@ -558,4 +558,38 @@ video {
.static {
position: static;
}
.mt-2 {
margin-top: 0.5rem;
}
.w-full {
width: 100%;
}
.rounded-md {
border-radius: 0.375rem;
}
.rounded {
border-radius: 0.25rem;
}
.border {
border-width: 1px;
}
.bg-black {
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}
.p-2 {
padding: 0.5rem;
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

View File

@ -83,10 +83,15 @@ export default class App extends React.Component {
}
render() {
const iFrameStyles = {
border: 'none',
width: '100%'
};
return (
<SentryErrorBoundary dsn={this.props.sentryDsn}>
<AppContext.Provider value={this.getContextFromState()}>
<CustomIFrame>
<CustomIFrame style={iFrameStyles}>
<Form />
</CustomIFrame>
</AppContext.Provider>

View File

@ -14,7 +14,7 @@ const CustomIFrame = ({
);
return (
<iframe {...props} ref={setContentRef} title='iframeyall'>
<iframe {...props} ref={setContentRef} title='ghost-comments-iframe'>
{headNode && createPortal(head, headNode)}
{mountNode && createPortal(children, mountNode)}
</iframe>

View File

@ -44,8 +44,8 @@ class Form extends React.Component {
<figure className="avatar">
<span />
</figure>
<textarea value={this.state.message} onChange={this.handleChange} placeholder="What are your thoughts?" />
<button type="submit" className="button primary">Comment</button>
<textarea className="w-full rounded-md border p-2" value={this.state.message} onChange={this.handleChange} placeholder="What are your thoughts?" />
<button type="submit" className="bg-black p-2 text-white rounded w-full mt-2">Comment</button>
</form>
);
}