@meduza/ui-kit-2 0.1.34 → 0.1.36

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.34",
2
+ "version": "0.1.36",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -31,7 +31,10 @@
31
31
  color: rgba(255, 255, 255, 0.7);
32
32
  }
33
33
 
34
- .center.isInMediaBlock,
34
+ .center.isInMediaBlock {
35
+ text-align: left;
36
+ }
37
+
35
38
  .center.half {
36
39
  @media $landscapeTablet {
37
40
  text-align: left;
@@ -31,11 +31,19 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
31
31
  const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1
32
32
  const isSlides = styleContext && styleContext.indexOf('slide') !== -1
33
33
 
34
+ let context = []
35
+
36
+ if (styleContext && Array.isArray(styleContext)) {
37
+ context = styleContext.filter((item) => {
38
+ return item !== 'dark'
39
+ })
40
+ }
41
+
34
42
  const hasSource = !!components.find((item) => item.type === 'source_name')
35
43
 
36
44
  return (
37
45
  <Meta
38
- styleContext={styleContext}
46
+ styleContext={context}
39
47
  theme={theme || themeColor}
40
48
  onlyOn={block.only_on}
41
49
  hasSource={hasSource}
@@ -75,7 +75,7 @@
75
75
 
76
76
  background-color: #f7f7f7;
77
77
 
78
- @media $landscapeTablet {
78
+ @media $mobile {
79
79
  position: absolute;
80
80
  z-index: 10;
81
81
  right: 0;
@@ -92,13 +92,13 @@
92
92
  .isRich {
93
93
  color: #000;
94
94
 
95
- @media $landscapeTablet {
95
+ @media $mobile {
96
96
  color: #fff;
97
97
  }
98
98
  }
99
99
 
100
100
  .isRich.hasGradient .body {
101
- @media $landscapeTablet {
101
+ @media $mobile {
102
102
  position: absolute;
103
103
  z-index: 10;
104
104
  right: 0;