@files-preview-app/preview-file 1.2.4 → 1.2.6

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/styles.css CHANGED
@@ -32,6 +32,26 @@
32
32
  color: var(--fp-text-color);
33
33
  font-family: system-ui, -apple-system, sans-serif;
34
34
  overflow: hidden;
35
+ position: relative;
36
+ }
37
+
38
+ .fp-viewer:fullscreen,
39
+ .fp-viewer:-webkit-full-screen,
40
+ .fp-viewer.fp-fullscreen-active {
41
+ width: 100vw !important;
42
+ height: 100vh !important;
43
+ max-width: 100vw !important;
44
+ max-height: 100vh !important;
45
+ background: var(--fp-bg) !important;
46
+ position: fixed !important;
47
+ top: 0 !important;
48
+ left: 0 !important;
49
+ right: 0 !important;
50
+ bottom: 0 !important;
51
+ z-index: 999999 !important;
52
+ margin: 0 !important;
53
+ padding: 0 !important;
54
+ box-sizing: border-box !important;
35
55
  }
36
56
 
37
57
  .fp-toolbar {
@@ -115,6 +135,8 @@
115
135
  .fp-body {
116
136
  display: flex;
117
137
  flex: 1;
138
+ min-height: 0;
139
+ width: 100%;
118
140
  overflow: hidden;
119
141
  }
120
142
 
@@ -167,8 +189,13 @@
167
189
  position: relative;
168
190
  overflow: auto;
169
191
  display: flex;
192
+ flex-direction: column;
170
193
  align-items: center;
171
- justify-content: center;
194
+ justify-content: flex-start;
195
+ width: 100%;
196
+ height: 100%;
197
+ min-height: 0;
198
+ box-sizing: border-box;
172
199
  }
173
200
 
174
201
  .fp-loading, .fp-error {