mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Updated frame styles
This commit is contained in:
parent
32c396d75b
commit
0eeff657de
4 changed files with 43 additions and 4 deletions
|
@ -559,3 +559,37 @@ video {
|
||||||
.static {
|
.static {
|
||||||
position: 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));
|
||||||
|
}
|
|
@ -83,10 +83,15 @@ export default class App extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const iFrameStyles = {
|
||||||
|
border: 'none',
|
||||||
|
width: '100%'
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SentryErrorBoundary dsn={this.props.sentryDsn}>
|
<SentryErrorBoundary dsn={this.props.sentryDsn}>
|
||||||
<AppContext.Provider value={this.getContextFromState()}>
|
<AppContext.Provider value={this.getContextFromState()}>
|
||||||
<CustomIFrame>
|
<CustomIFrame style={iFrameStyles}>
|
||||||
<Form />
|
<Form />
|
||||||
</CustomIFrame>
|
</CustomIFrame>
|
||||||
</AppContext.Provider>
|
</AppContext.Provider>
|
||||||
|
|
|
@ -14,7 +14,7 @@ const CustomIFrame = ({
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<iframe {...props} ref={setContentRef} title='iframeyall'>
|
<iframe {...props} ref={setContentRef} title='ghost-comments-iframe'>
|
||||||
{headNode && createPortal(head, headNode)}
|
{headNode && createPortal(head, headNode)}
|
||||||
{mountNode && createPortal(children, mountNode)}
|
{mountNode && createPortal(children, mountNode)}
|
||||||
</iframe>
|
</iframe>
|
||||||
|
|
|
@ -44,8 +44,8 @@ class Form extends React.Component {
|
||||||
<figure className="avatar">
|
<figure className="avatar">
|
||||||
<span />
|
<span />
|
||||||
</figure>
|
</figure>
|
||||||
<textarea value={this.state.message} onChange={this.handleChange} placeholder="What are your thoughts?" />
|
<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="button primary">Comment</button>
|
<button type="submit" className="bg-black p-2 text-white rounded w-full mt-2">Comment</button>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue