Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/packages/devsite/news/7.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Altera exibição do modal e localização do botão de fechar do álbum de imagens. @emmenezes @emillysant @Jehcky @leila-souza-dev-backend
5 changes: 3 additions & 2 deletions frontend/packages/devsite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-intl": "^3.12.1",
"query-string": "9.1.1"
"query-string": "9.1.1",
"semantic-ui-react": "*"
},
"devDependencies": {
"@plone/scripts": "workspace:*",
Expand All @@ -64,4 +65,4 @@
"@types/react-dom": "^18.3.0",
"release-it": "^17.1.1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Button, Modal } from 'semantic-ui-react';
import { Container } from '@plone/components';
import type { ContainedItem } from '@plone/types';
import zoomSVG from '@plone/volto/icons/zoom-in.svg';
import circleDismissSVG from '@plone/volto/icons/circle-dismiss.svg';
import config from '@plone/volto/registry';

const messages = defineMessages({
Expand Down Expand Up @@ -35,7 +36,13 @@ const AlbumItem = ({ item }: { item: ContainedItem }) => {
<div className="album-item-info">
<Modal
className="modal-image-full"
closeIcon
closeIcon={
<Icon
name={circleDismissSVG}
size="50px"
className={'close icon'}
/>
}
size="fullscreen"
trigger={
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@
justify-content: start;
border: unset;
margin: auto;
animation: openModal 0.5s;
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
background-color: unset;
background-color: var(--background);
box-shadow: unset;
.close.icon {
top: 1rem;
color: var(--text-color);
}
.album-modal.image.content {
flex-direction: column;
align-items: center;
Expand All @@ -100,6 +102,7 @@
.album-modal-title {
display: block;
@include block-title();
padding-top: 1rem;
}

.album-modal-description {
Expand Down
49 changes: 39 additions & 10 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading