Skip to content

Commit

Permalink
Release/v3.11.5 (#95)
Browse files Browse the repository at this point in the history
* fix: top button overlap

* style: add pointer event desktop

* chore(release): 3.11.5

---------

Co-authored-by: bmo-amity-bot <[email protected]>
  • Loading branch information
ChayanitBm and bmo-amity-bot authored Dec 20, 2024
1 parent d70ac6d commit afa2000
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 3.11.5 (2024-12-20)

### 3.11.4 (2024-12-02)

### 3.11.4 (2024-12-02)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/ui-kit-open-source",
"version": "3.11.4",
"version": "3.11.5",
"engines": {
"node": ">=16",
"pnpm": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/ImageGallery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const ImageGallery = <T extends Amity.Post>({

return (
<Container>
<Frame>{renderItem(items[index])}</Frame>
<InnerContainer>
<Frame>{renderItem(items[index])}</Frame>
<GridContainer>
{showCounter && <Counter>{`${index + 1} / ${items.length}`}</Counter>}

Expand Down
6 changes: 5 additions & 1 deletion src/core/components/ImageGallery/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const InnerContainer = styled.div`
width: 100%;
height: 100%;
position: relative;
pointer-events: none;
`;

export const GridContainer = styled.div`
Expand All @@ -55,7 +56,7 @@ export const GridContainer = styled.div`
'left image right';
width: 100%;
height: 100%;
height: 90%;
padding: 2rem 1rem 2rem 1rem;
Expand Down Expand Up @@ -85,6 +86,7 @@ export const Frame = styled.div`
left: 0;
@media (min-width: 768px) {
pointer-events: auto;
position: unset;
top: unset;
left: unset;
Expand All @@ -109,6 +111,7 @@ const InvisibleButton = styled.button`
cursor: pointer;
font-size: 24px;
color: inherit;
pointer-events: auto;
&:hover {
color: ${({ theme }) => theme.palette.neutral.shade4};
Expand Down Expand Up @@ -143,4 +146,5 @@ export const CloseButton = styled(BaseCloseButton)`
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
`;

0 comments on commit afa2000

Please sign in to comment.