Skip to content

Commit 6c87a69

Browse files
committed
demo
1 parent 9a0742b commit 6c87a69

17 files changed

+7
-11
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/spreadsheet_component.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,7 @@ <h5 class="modal-title">Cell Update</h5>
1010
</div>
1111
</div>
1212

13-
<script nonce="{{@csp_nonce}}" src="https://cdn.jsdelivr.net/npm/@univerjs/[email protected]/lib/univer.full.umd.js"></script>
14-
<script nonce="{{@csp_nonce}}" src="https://cdn.jsdelivr.net/npm/@univerjs/[email protected]/lib/locale/en-US.js"></script>
15-
<style>
16-
@import url(https://cdn.jsdelivr.net/npm/@univerjs/[email protected]/lib/univer.min.css);
17-
@media (min-width: 768px) {
18-
.sqlpage_spreadsheet {
19-
margin: 0 -2rem;
20-
width: calc(100% + 4rem);
21-
}
22-
}
23-
</style>
13+
<style>@import url("./style.css");</style>
2414

2515
<div id="_sqlpage_spreadsheet_univer_{{@component_index}}" class="sqlpage_spreadsheet" style="height: 80vh">
2616
<div class="d-flex justify-content-center h-100 align-items-center">

src/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@media (width >= 768px) {
2+
.sqlpage_spreadsheet {
3+
width: calc(100% + 4rem);
4+
margin: 0 -2rem;
5+
}
6+
}

0 commit comments

Comments
 (0)