aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/LightboxView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-04-20 13:58:56 -0400
committerbobzel <zzzman@gmail.com>2021-04-20 13:58:56 -0400
commit484ec015ff061d78d6ae9a7ec474d83315aaaebb (patch)
tree06aee37cd40fe5ffefe79353b659e1015cbf936e /src/client/views/LightboxView.tsx
parentf716a679d8abad1c26088cf5f8795cb745da18b0 (diff)
made lightbox fit comic mode too.
Diffstat (limited to 'src/client/views/LightboxView.tsx')
-rw-r--r--src/client/views/LightboxView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx
index 9c03b457b..ce36d9182 100644
--- a/src/client/views/LightboxView.tsx
+++ b/src/client/views/LightboxView.tsx
@@ -14,7 +14,7 @@ import { Transform } from '../util/Transform';
import { TabDocView } from './collections/TabDocView';
import "./LightboxView.scss";
import { DocumentView, ViewAdjustment } from './nodes/DocumentView';
-import { DefaultStyleProvider } from './StyleProvider';
+import { DefaultStyleProvider, wavyBorderPath } from './StyleProvider';
interface LightboxViewProps {
PanelWidth: number;
@@ -217,7 +217,8 @@ export class LightboxView extends React.Component<LightboxViewProps> {
left: this.leftBorder,
top: this.topBorder,
width: this.lightboxWidth(),
- height: this.lightboxHeight()
+ height: this.lightboxHeight(),
+ clipPath: `path('${Doc.UserDoc().renderStyle === "comic" ? wavyBorderPath(this.lightboxWidth(), this.lightboxHeight()) : undefined}')`
}}>
<DocumentView ref={action((r: DocumentView | null) => {
LightboxView._docView = r !== null ? r : undefined;