@oat-sa/tao-core-ui 3.18.3 → 3.18.5

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.
@@ -352,12 +352,16 @@ define(['jquery', 'lodash', 'async', 'util/urlParser', 'core/dataProvider/reques
352
352
  this._playingState(false, true);
353
353
  this._initPlayer();
354
354
  this._initSize();
355
-
356
- // Resize for old items with defined height to avoid big jump
357
- if (this.config.height && this.config.height !== 'auto') {
358
- this.resize('100%', 'auto');
355
+ if ($$1('body').hasClass('item-writing-mode-vertical-rl')) {
356
+ // Change size axis for vertical writing view mode
357
+ this.resize(this.config.height, this.config.width);
359
358
  } else {
360
- this.resize(this.config.width, this.config.height);
359
+ // Resize for old items with defined height to avoid big jump
360
+ if (this.config.height && this.config.height !== 'auto') {
361
+ this.resize('100%', 'auto');
362
+ } else {
363
+ this.resize(this.config.width, this.config.height);
364
+ }
361
365
  }
362
366
  this.config.is.rendered = true;
363
367
  if (renderTo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oat-sa/tao-core-ui",
3
- "version": "3.18.3",
3
+ "version": "3.18.5",
4
4
  "displayName": "TAO Core UI",
5
5
  "description": "UI libraries of TAO",
6
6
  "scripts": {
@@ -593,13 +593,26 @@ body {
593
593
  writing-mode: vertical-rl;
594
594
  }
595
595
 
596
- .qti-item .qti-itemBody.writing-mode-vertical-rl {
597
- hr {
598
- height: 100%;
599
- max-height: 100%;
600
- margin: 0 12px;
601
- border: none;
602
- border-right: 1px solid #8c8c8c;
596
+ .qti-item .qti-itemBody {
597
+ .writing-mode-vertical-rl,
598
+ &.writing-mode-vertical-rl {
599
+ hr {
600
+ height: 100%;
601
+ max-height: 100%;
602
+ margin: 0 12px;
603
+ border: none;
604
+ border-right: 1px solid #8c8c8c;
605
+ }
606
+ }
607
+ .writing-mode-horizontal-tb,
608
+ &.writing-mode-horizontal-tb {
609
+ hr {
610
+ height: 1px;
611
+ max-height: 1px;
612
+ margin: 12px 0;
613
+ border: none;
614
+ border-top: 1px solid #8c8c8c;
615
+ }
603
616
  }
604
617
  }
605
618
 
@@ -689,6 +702,8 @@ body {
689
702
  .qti-item .writing-mode-vertical-rl .qti-object-container.previewer:has(.mediaplayer) {
690
703
  writing-mode: horizontal-tb;
691
704
  direction: rtl;
705
+ height: 100%;
706
+ width: auto;
692
707
 
693
708
  .mediaplayer .controls {
694
709
  display: inline-block;
package/src/css/basic.css CHANGED
@@ -1534,13 +1534,20 @@ html .writing-mode-horizontal-tb {
1534
1534
  html .writing-mode-vertical-rl {
1535
1535
  writing-mode: vertical-rl;
1536
1536
  }
1537
- html .qti-item .qti-itemBody.writing-mode-vertical-rl hr {
1537
+ html .qti-item .qti-itemBody .writing-mode-vertical-rl hr, html .qti-item .qti-itemBody.writing-mode-vertical-rl hr {
1538
1538
  height: 100%;
1539
1539
  max-height: 100%;
1540
1540
  margin: 0 12px;
1541
1541
  border: none;
1542
1542
  border-right: 1px solid #8c8c8c;
1543
1543
  }
1544
+ html .qti-item .qti-itemBody .writing-mode-horizontal-tb hr, html .qti-item .qti-itemBody.writing-mode-horizontal-tb hr {
1545
+ height: 1px;
1546
+ max-height: 1px;
1547
+ margin: 12px 0;
1548
+ border: none;
1549
+ border-top: 1px solid #8c8c8c;
1550
+ }
1544
1551
  html .writing-mode-vertical-rl .txt-subscript {
1545
1552
  inset-block-start: -0.9em;
1546
1553
  bottom: 0;
@@ -1644,6 +1651,8 @@ html .qti-item .writing-mode-vertical-rl .media-container,
1644
1651
  html .qti-item .writing-mode-vertical-rl .qti-object-container.previewer:has(.mediaplayer) {
1645
1652
  writing-mode: horizontal-tb;
1646
1653
  direction: rtl;
1654
+ height: 100%;
1655
+ width: auto;
1647
1656
  }
1648
1657
  html .qti-item .writing-mode-vertical-rl .media-container .mediaplayer .controls,
1649
1658
  html .qti-item .writing-mode-vertical-rl .qti-object-container.previewer:has(.mediaplayer) .mediaplayer .controls {