Skip to content

Commit

Permalink
fix: ui细节调整
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanqb committed Mar 22, 2024
1 parent adc5635 commit 5e108af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/chapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Vue.component('chapter', {
<div v-if="item.subMenu && item.subMenu.length>0">
<li class="chapter-item" :class="item.expanded?'expanded':''"
@click="item.expanded = !item.expanded">
<a>{{item.menuName}}</a>
<a class="toggle">
<div>❱</div>
</a>
<a>{{item.menuName}}</a>
</li>
<li>
<ol class="section">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
</div>
</div>
</div>
<script src="./style/core.js?v=24"></script>
<script src="./style/core.js?v=25"></script>
</div>
</body>

Expand Down
2 changes: 0 additions & 2 deletions style/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,7 @@ function clearColumnConfig() {
}

function scrollIntoView(target) {
// const target = document.querySelector('.active')
if (target) {
// target.scrollIntoView({ block: "end" });
target.scrollIntoViewIfNeeded(true);
}
}
Expand Down
4 changes: 2 additions & 2 deletions style/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ ul#searchresults span.teaser em {
.chapter li>a.toggle {
cursor: pointer;
display: block;
/* margin-inline-start: auto; */
margin-inline-start: auto;
padding: 0 10px;
user-select: none;
opacity: 0.68;
Expand All @@ -659,7 +659,7 @@ ul#searchresults span.teaser em {
}

.chapter li.chapter-item {
width: 90%;
width: 100%;
line-height: 1.5em;
margin-block-start: 0.6em;
}
Expand Down

0 comments on commit 5e108af

Please sign in to comment.