-
+
+
{section.ร่างมาตรา ? (
@@ -100,32 +106,39 @@ export default function Sections({ sections, search = null }) {
>
) : ''}
{section.ประเด็นการพิจารณา.length ? (
- <>
-
-
ประเด็นการพิจารณา
-
-
-
-
- {isShown &&
-
- }
-
+
+
+
+
+
+
ประเด็นการพิจารณา
+
+
+
+
- >
+
) : ''}
diff --git a/src/styles/Home.css b/src/styles/Home.css
index d943561..5cfbd9e 100644
--- a/src/styles/Home.css
+++ b/src/styles/Home.css
@@ -72,6 +72,17 @@ body {
margin-bottom: 0em;
}
+.section-button a {
+ color: #feb;
+ background: #310;
+ border: 1px solid #cb6;
+ margin-right: 12px;
+ padding: 6px 14px 8px 14px;
+}
+ .section-button a:last-child {
+ margin-right: 0px;
+ }
+
.provision p {
text-indent: 3em;
line-height: 2em;
@@ -143,3 +154,7 @@ body {
.react-paginate li.active a {
color: #000;
}
+
+.no-scroll {
+ overflow-y: hidden;
+}
diff --git a/src/utils/toggleIssue.js b/src/utils/toggleIssue.js
new file mode 100644
index 0000000..703f186
--- /dev/null
+++ b/src/utils/toggleIssue.js
@@ -0,0 +1,11 @@
+export default function toggleIssue(issueNo) {
+ const elem = document.getElementById('issue-'+issueNo);
+ document.body.classList.toggle('no-scroll');
+ elem.classList.toggle('hidden');
+ elem.scrollTo(0, 0);
+ window.onhashchange = evt => {
+ document.body.classList.remove('no-scroll');
+ window.onhashchange = '';
+ };
+ return;
+}