mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
Fix: Camera Photo View
This commit is contained in:
parent
2d7b82ab90
commit
5dd8fc366d
@ -170,8 +170,8 @@ $nitro-card-tabs-height: 42px;
|
||||
|
||||
.nitro-card-header-report-camera {
|
||||
cursor: pointer;
|
||||
padding: 0px 2px;
|
||||
margin-right: 4px;
|
||||
padding: 1px 2px;
|
||||
margin-right: 10px;
|
||||
line-height: 1;
|
||||
@include font-size($h7-font-size);
|
||||
border-radius: $border-radius;
|
||||
|
@ -61,11 +61,11 @@ export const CameraWidgetShowPhotoView: FC<CameraWidgetShowPhotoViewProps> = pro
|
||||
</Flex>
|
||||
{ (currentPhotos.length > 1) &&
|
||||
<Flex className="picture-preview-buttons">
|
||||
<FaArrowLeft className="cursor-pointer picture-preview-buttons-previous fa-icon" onClick={ previous } />
|
||||
<FaArrowLeft className="cursor-pointer" onClick={ previous } />
|
||||
<Text underline className="cursor-pointer" onClick={ event => GetUserProfile(currentImage.oi) }>{ currentImage.o }</Text>
|
||||
<FaArrowRight className="cursor-pointer picture-preview-buttons-next fa-icon" onClick={ next } />
|
||||
<FaArrowRight className="cursor-pointer" onClick={ next } />
|
||||
</Flex>
|
||||
}
|
||||
</Grid>
|
||||
);
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import { FC } from 'react';
|
||||
import { GetSessionDataManager, ReportType } from '../../../../api';
|
||||
import { GetSessionDataManager, LocalizeText, ReportType } from '../../../../api';
|
||||
import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../common';
|
||||
import { useFurnitureExternalImageWidget, useHelp } from '../../../../hooks';
|
||||
import { CameraWidgetShowPhotoView } from '../../../camera/views/CameraWidgetShowPhotoView';
|
||||
@ -13,7 +13,7 @@ export const FurnitureExternalImageView: FC<{}> = props =>
|
||||
|
||||
return (
|
||||
<NitroCardView className="nitro-external-image-widget" theme="primary-slim">
|
||||
<NitroCardHeaderView headerText="" isGalleryPhoto={ true } onReportPhoto={ () => report(ReportType.PHOTO, { extraData: currentPhotos[currentPhotoIndex].w, roomId: currentPhotos[currentPhotoIndex].s, reportedUserId: GetSessionDataManager().userId, roomObjectId: Number(currentPhotos[currentPhotoIndex].u) }) } onCloseClick={ onClose } />
|
||||
<NitroCardHeaderView headerText={ LocalizeText('camera.interface.title') } isGalleryPhoto={ true } onReportPhoto={ () => report(ReportType.PHOTO, { extraData: currentPhotos[currentPhotoIndex].w, roomId: currentPhotos[currentPhotoIndex].s, reportedUserId: GetSessionDataManager().userId, roomObjectId: Number(currentPhotos[currentPhotoIndex].u) }) } onCloseClick={ onClose } />
|
||||
<NitroCardContentView>
|
||||
<CameraWidgetShowPhotoView currentIndex={ currentPhotoIndex } currentPhotos={ currentPhotos } />
|
||||
</NitroCardContentView>
|
||||
|
@ -58,7 +58,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: black;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.picture-preview-buttons-previous,
|
||||
|
Loading…
x
Reference in New Issue
Block a user