@playcanvas/supersplat-viewer 1.35.0 → 1.35.2

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.
package/dist/viewer.css CHANGED
@@ -838,6 +838,7 @@
838
838
  position: absolute;
839
839
  left: 0;
840
840
  top: 0;
841
+ will-change: transform;
841
842
  display: none;
842
843
  align-items: center;
843
844
  justify-content: center;
@@ -872,6 +873,9 @@
872
873
  .sse-viewer .sse-annotations > .sse-annotation {
873
874
  --sse-annotation-bkg: rgba(0, 0, 0, 0.9);
874
875
  position: absolute;
876
+ left: 0;
877
+ top: 0;
878
+ will-change: transform;
875
879
  width: -moz-max-content;
876
880
  width: max-content;
877
881
  max-width: min(280px, 100% - 16px);
@@ -899,11 +903,22 @@
899
903
  transition: opacity 0.2s ease-out, translate 0.2s ease-out;
900
904
  }
901
905
  .sse-viewer .sse-annotations > .sse-annotation > .sse-annotation-title {
902
- margin-bottom: 4px;
903
906
  font-size: 13px;
904
907
  font-weight: bold;
905
908
  color: var(--sse-text-light);
906
909
  }
910
+ .sse-viewer .sse-annotations > .sse-annotation > .sse-annotation-text {
911
+ margin-top: 4px;
912
+ }
913
+ .sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-text:empty) {
914
+ padding-bottom: 10px;
915
+ }
916
+ .sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-text:empty) > .sse-annotation-text {
917
+ display: none;
918
+ }
919
+ .sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-title:empty):has(> .sse-annotation-text:empty) {
920
+ display: none;
921
+ }
907
922
  .sse-viewer .sse-annotations > .sse-annotation.sse-arrow-right::before, .sse-viewer .sse-annotations > .sse-annotation.sse-arrow-left::before {
908
923
  content: "";
909
924
  position: absolute;