Skip to content

Commit 5545f5c

Browse files
committed
feat: add scrollbar to iframe
1 parent 0f8dcf8 commit 5545f5c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

web/src/FormDataPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class FormDataPage extends Component {
5959
return <FormDataTablePage {...this.props} />;
6060
} else if (this.state.form.type === "iFrame") {
6161
return (
62-
<iframe id="formData" title="formData" src={this.state.form.url} style={{width: "100%", height: "calc(100vh - 134px)"}} scrolling="no" />
62+
<iframe id="formData" title="formData" src={this.state.form.url} style={{width: "100%", height: "calc(100vh - 134px)"}} frameBorder="no" />
6363
);
6464
} else {
6565
return `Unsupported form type: ${this.state.form.type}`;

web/src/FormEditPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class FormEditPage extends React.Component {
157157
</Col>
158158
<Col span={22} >
159159
<div key={this.state.formCount}>
160-
<iframe id="formData" title={"formData"} src={`${location.href}/data`} width="100%" height="700px" scrolling="no" style={{border: "1px solid #e0e0e0", borderRadius: "8px", boxShadow: "0 2px 8px rgba(0, 0, 0, 0.1)"}} />
160+
<iframe id="formData" title={"formData"} src={`${location.href}/data`} width="100%" height="700px" frameBorder="no" style={{border: "1px solid #e0e0e0", borderRadius: "8px", boxShadow: "0 2px 8px rgba(0, 0, 0, 0.1)"}} />
161161
</div>
162162
</Col>
163163
</Row>

web/src/frame/AuditPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AuditPage extends React.Component {
2424

2525
render() {
2626
return (
27-
<iframe id="iframe" title={"iframe"} src={`https://47.113.204.64:23554/?userId=${this.props.account.name}`} width="100%" height={window.innerHeight - 195} scrolling="no" frameBorder="no" />
27+
<iframe id="iframe" title={"iframe"} src={`https://47.113.204.64:23554/?userId=${this.props.account.name}`} width="100%" height={window.innerHeight - 195} frameBorder="no" />
2828
);
2929
}
3030
}

web/src/frame/PythonSrPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PythonSrPage extends React.Component {
2424

2525
render() {
2626
return (
27-
<iframe id="PythonSrPage" title={"iframe"} src={"https://sr.casibase.com"} width="100%" height={window.innerHeight - 195} scrolling="no" frameBorder="no" />
27+
<iframe id="PythonSrPage" title={"iframe"} src={"https://sr.casibase.com"} width="100%" height={window.innerHeight - 195} frameBorder="no" />
2828
);
2929
}
3030
}

web/src/frame/PythonYolov8miPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PythonYolov8miPage extends React.Component {
2424

2525
render() {
2626
return (
27-
<iframe id="PythonYolov8miPage" title={"iframe"} src={"https://yolov8mi.casibase.com"} width="100%" height={window.innerHeight - 195} scrolling="no" frameBorder="no" />
27+
<iframe id="PythonYolov8miPage" title={"iframe"} src={"https://yolov8mi.casibase.com"} width="100%" height={window.innerHeight - 195} frameBorder="no" />
2828
);
2929
}
3030
}

0 commit comments

Comments
 (0)