mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add container to expanded images
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
const handleImageClick = (e) => {
|
||||
e.target.classList.toggle('enlarged');
|
||||
const image = e.target;
|
||||
const container = image.closest('.img-container');
|
||||
|
||||
image.classList.toggle('enlarged');
|
||||
|
||||
if (container) {
|
||||
container.classList.toggle('expanded-container');
|
||||
}
|
||||
};
|
||||
|
||||
export default handleImageClick;
|
||||
Reference in New Issue
Block a user