mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
fix(photo-viewer): update iframe style to use aspect ratio
- Modified the iframe style in SharePanel to utilize the aspect ratio based on photo dimensions, enhancing responsiveness. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -282,8 +282,7 @@ export const SharePanel = ({ photo, trigger, blobSrc }: SharePanelProps) => {
|
||||
<code className="text-text-secondary font-mono text-xs break-all whitespace-pre select-all">
|
||||
{`<iframe
|
||||
src="${siteConfig.url.replace(/\/$/, '')}/share/iframe?id=${photo.id}"
|
||||
height="500"
|
||||
style="width: 100%;"
|
||||
style="width: 100%; aspect-ratio: ${photo.width} / ${photo.height}"
|
||||
allowTransparency
|
||||
sandbox="allow-scripts allow-same-origin allow-popups"
|
||||
/>`}
|
||||
|
||||
Reference in New Issue
Block a user