Skip to content

Commit 3377d29

Browse files
author
Suhas Hariharan
authored
Merge pull request #270 from sas-fossdev/fix-center-category
fixed css for category weighting
2 parents 2c631e7 + e830f50 commit 3377d29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/js/components/CategoryWeighting.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</tr>
6262
</tbody>
6363
</table>
64-
<button style="margin-left: 1.6%" @click="addCategory();">
64+
<button style="margin-left: 20px" @click="addCategory();">
6565
Add Category
6666
</button>
6767
<label v-if="categorySum != 100">Category weightings do not sum to 100%</label>
@@ -71,8 +71,8 @@
7171
>
7272
Save Weighting
7373
</button>
74-
<h2 v-if="categorySum==100">{{ hypo.grade }} ({{ hypo.fp }})</h2>
75-
<br><br>
74+
<h2 v-if="categorySum==100">{{ hypo.grade }} ({{ hypo.fp }})<br></h2>
75+
<div v-if="categorySum!=100"><br></div>
7676
<p>Note: Since teachers can adjust the weighting of each assignment as well, this number is not necessarily accurate. In addition, early in the year some categories(i.e the exam category) may contain no grades and the percentages would need to be adjusted accordingly.</p>
7777
</div>
7878
</template>

src/js/saspowerschoolff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function class_page () {
121121
addHypoAssignment(number);
122122
addVueGrades();
123123

124-
document.querySelector('div.box-round').insertAdjacentHTML('afterend', `<select id='hypo-select'><option value='none'>Hypothetical Assigment Mode</option><option value='single'>Add Single Assignment</option><option value='category'>Category Weighting (beta)</option></select>`);
124+
document.querySelector('div.box-round').insertAdjacentHTML('afterend', `<select style="margin-left:20px; text-align-last: center; border-radius: 4px;" id='hypo-select'><option value='none'>Hypothetical Assigment Mode</option><option value='single'>Add Single Assignment</option><option value='category'>Category Weighting (beta)</option></select>`);
125125
gt.setCategoryWeighting(false);
126126
document.getElementById('saspes-hypo-assignment').style.display = "none";
127127
document.getElementById('saspes-categories').style.display = "none";

0 commit comments

Comments
 (0)