Added scrollbar to gallery

这个提交包含在:
Steven Dodd 2025-08-10 15:19:08 +00:00
父节点 5fe24614e1
当前提交 c92f438a4c

查看文件

@ -71,7 +71,7 @@
} }
?> ?>
</div> </div>
<div class="tab-pane fade" id="gallery" role="tabpanel" aria-labelledby="gallery-tab"> <div class="tab-pane fade scrollable-div" id="gallery" role="tabpanel" aria-labelledby="gallery-tab">
<br/> <br/>
<style> <style>
body { body {
@ -98,6 +98,10 @@
-webkit-filter: grayscale(0%); -webkit-filter: grayscale(0%);
opacity: 1; opacity: 1;
} }
.scrollable-div {
height: 70vh; /* set a fixed height for the div */
overflow-y: scroll; /* enable vertical scrollbar */
}
@media screen and ( min-width: 768px ) { @media screen and ( min-width: 768px ) {
.photo { float: left; width: 50%; } .photo { float: left; width: 50%; }
} }