@alphacifer/slidev-addon-theme 0.0.3 → 0.0.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.
@@ -6,8 +6,8 @@ defineOptions({
6
6
  });
7
7
 
8
8
  interface ITransitionHeadingProps {
9
- readonly center?: boolean;
10
9
  readonly idle?: boolean;
10
+ readonly center?: boolean;
11
11
  }
12
12
 
13
13
  const props = withDefaults(defineProps<ITransitionHeadingProps>(), {
@@ -16,7 +16,7 @@ const props = withDefaults(defineProps<ITransitionHeadingProps>(), {
16
16
  });
17
17
 
18
18
  const { className, forwardedAttrs } = useMergedUnoAttrs(() => [
19
- 'alpha-transition-heading transition-all duration-700 ease-in-out absolute whitespace-nowrap',
19
+ 'alpha-transition-heading transition-all duration-700 ease-in-out absolute w-[calc(100%-7rem)] whitespace-normal',
20
20
  {
21
21
  'top-[50%] left-[50%] translate-[-50%,-50%]': props.center,
22
22
  'top-[2.5rem] left-[3.5rem] translate-[0,0]': props.idle || !props.center,
@@ -480,6 +480,10 @@ onBeforeUnmount(() => {
480
480
  text-decoration: none !important;
481
481
  }
482
482
 
483
+ .toc-content :deep(.slidev-toc-list-level-1 > .slidev-toc-item > a) {
484
+ white-space: nowrap;
485
+ }
486
+
483
487
  .toc-content :deep(.slidev-toc-item > a::before) {
484
488
  display: none;
485
489
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphacifer/slidev-addon-theme",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "All Slidev addons for Alpha presentations",
5
5
  "type": "module",
6
6
  "keywords": [