x-star-editor 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1787,6 +1787,9 @@ body {
1787
1787
  .x-star-editor-md-editor > :last-child {
1788
1788
  margin-bottom: 0.5em;
1789
1789
  }
1790
+ .x-star-editor-md-editor.x-star-editor-empty {
1791
+ /* 文本为空时显示提示 */
1792
+ }
1790
1793
  .x-star-editor-md-editor.x-star-editor-empty::before {
1791
1794
  content: attr(placeholder);
1792
1795
  position: absolute;
@@ -1830,6 +1833,9 @@ body {
1830
1833
  .x-star-editor-md-viewer tr:nth-child(even) td {
1831
1834
  background-color: rgba(0, 0, 0, 0.04);
1832
1835
  }
1836
+ .x-star-editor-md-viewer img {
1837
+ max-width: 100%;
1838
+ }
1833
1839
 
1834
1840
  .x-star-editor-slide-viewer {
1835
1841
  position: relative;
@@ -1849,19 +1855,14 @@ body {
1849
1855
  .x-star-editor-slide-viewer .x-star-editor-slide {
1850
1856
  width: 1280px;
1851
1857
  height: 720px;
1852
- padding: 0 32px;
1858
+ padding: 78.5px;
1853
1859
  display: flex;
1854
1860
  flex-direction: column;
1855
1861
  justify-content: center;
1862
+ font-size: 29px;
1856
1863
  background-color: #fff;
1857
1864
  transform-origin: top left;
1858
1865
  }
1859
- .x-star-editor-slide-viewer .x-star-editor-slide > :first-child {
1860
- margin-top: 0;
1861
- }
1862
- .x-star-editor-slide-viewer .x-star-editor-slide > :last-child {
1863
- margin-bottom: 0;
1864
- }
1865
1866
  .x-star-editor-slide-viewer .x-star-editor-slide h1,
1866
1867
  .x-star-editor-slide-viewer .x-star-editor-slide h2,
1867
1868
  .x-star-editor-slide-viewer .x-star-editor-slide h3,
@@ -1871,12 +1872,12 @@ body {
1871
1872
  font-weight: bold;
1872
1873
  }
1873
1874
  .x-star-editor-slide-viewer .x-star-editor-slide table {
1874
- margin: 16px 0;
1875
+ margin: 1em 0;
1875
1876
  border-collapse: collapse;
1876
1877
  }
1877
1878
  .x-star-editor-slide-viewer .x-star-editor-slide th,
1878
1879
  .x-star-editor-slide-viewer .x-star-editor-slide td {
1879
- padding: 8px;
1880
+ padding: 0.5em;
1880
1881
  border: 1px solid #dedede;
1881
1882
  }
1882
1883
  .x-star-editor-slide-viewer .x-star-editor-slide th {
@@ -1886,12 +1887,14 @@ body {
1886
1887
  .x-star-editor-slide-viewer .x-star-editor-slide tr:nth-child(even) td {
1887
1888
  background-color: rgba(0, 0, 0, 0.04);
1888
1889
  }
1889
- .x-star-editor-slide-viewer .x-star-editor-slide pre {
1890
- width: max-content;
1890
+ .x-star-editor-slide-viewer .x-star-editor-slide img {
1891
1891
  max-width: 100%;
1892
1892
  }
1893
- .x-star-editor-slide-viewer .x-star-editor-slide img[id^=user-content-mermaid] {
1894
- max-width: 100%;
1893
+ .x-star-editor-slide-viewer .x-star-editor-slide > :first-child {
1894
+ margin-top: 0; /* 防止垂直居中时出现视觉上不居中的现象 */
1895
+ }
1896
+ .x-star-editor-slide-viewer .x-star-editor-slide > :last-child {
1897
+ margin-bottom: 0; /* 防止垂直居中时出现视觉上不居中的现象 */
1895
1898
  }
1896
1899
  .x-star-editor-slide-viewer .x-star-editor-custom-cursor-pencil {
1897
1900
  cursor: url("./cursor/pencil.png"), auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-star-editor",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "An editor developed by turingstar",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",