Skip to content

Commit e7cc131

Browse files
authored
Merge pull request #749 from StioStudio/Options-page-scroll-bar-fix
Full Feature Settings Page - Scrolling Bug
2 parents 2bf8eaa + 3f42272 commit e7cc131

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

extras/index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
</div>
2727
</div>
2828
<div class="section1">
29-
<hr style="border: none; height: 1.5rem" />
3029
<div class="sectionwrap">
3130
<div class="messaging">
3231
<div class="messaging-header">
@@ -69,16 +68,18 @@ <h3>Blocked Users</h3>
6968
</div>
7069
</div>
7170
<div class="section2" id="section2">
72-
<input class="searchbar" placeholder="Search" /><input
71+
<div style="display: flex;margin-top: 1.9rem;">
72+
<input class="searchbar" placeholder="Search" /><input
7373
class="searchbarbutton"
7474
value=""
7575
type="submit"
76-
/>
77-
<div class="buttons">
78-
<button class="selected" data-type="All">All</button>
79-
<button data-type="Website">Website</button>
80-
<button data-type="Editor">Editor</button>
81-
<button data-type="Forums">Forums</button>
76+
/>
77+
<div class="buttons">
78+
<button class="selected" data-type="All">All</button>
79+
<button data-type="Website">Website</button>
80+
<button data-type="Editor">Editor</button>
81+
<button data-type="Forums">Forums</button>
82+
</div>
8283
</div>
8384
<div class="sectionwrap">
8485
<div

extras/style.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ a {
209209
}
210210
.section2 {
211211
border: 0px solid black;
212-
min-height: 100% !important;
213-
height: 100vh;
212+
min-height: calc(100% - 2.5rem - 0.5em - 0.5em) !important;
213+
height: calc(100vh - 2.5rem - 0.5em - 0.5em);
214214
width: 70%;
215215
margin-left: 0em;
216216
overflow: auto;
@@ -275,6 +275,13 @@ a {
275275
padding-left: 2rem;
276276
height: 2.5rem;
277277
}
278+
279+
.main-page {
280+
height: 2.5rem;
281+
padding-top: 0.5em;
282+
padding-bottom: 0.5em;
283+
}
284+
278285
.settings-title {
279286
font-size: 1.2rem;
280287
margin-left: 0.8rem;
@@ -297,10 +304,8 @@ a {
297304
margin-bottom: 2.75em;
298305
color: var(--primary-color);
299306
margin-bottom: 0px;
300-
margin-top: 4rem;
301307
margin-left: 2rem;
302308
position: relative;
303-
bottom: -1rem;
304309
}
305310

306311
.searchbarbutton {
@@ -315,9 +320,10 @@ a {
315320
background-position: 47% 46%;
316321
background-size: 20px 20px;
317322
background-repeat: no-repeat;
318-
top: 4.175rem;
323+
bottom: 0px;
319324
position: relative;
320325
left: 0px;
326+
margin-bottom: 0px;
321327
}
322328

323329
.sectionwrap {
@@ -494,7 +500,6 @@ button.secondary-btn {
494500
.buttons {
495501
display: inline-block;
496502
position: relative;
497-
top: 3.1rem;
498503
border-left: 2px solid var(--searchbar-bg);
499504
margin-left: 0.5rem;
500505
}

0 commit comments

Comments
 (0)