Skip to content

Commit

Permalink
update website
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoTheTaco committed Oct 4, 2023
1 parent a9348de commit 6f96633
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/dataSources.local.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/src/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div style="background-color: #1B1C1F">

<div ref="container" style="display: flex; justify-content: space-between; align-items: end; max-width: 1280px; margin: auto; padding: 0.8rem;" class="desktop">
<div ref="container" style="display: flex; justify-content: space-between; max-width: 1280px; margin: auto; padding: 0.8rem;" class="desktop">

<div style="display: inline-block; margin-right: 2rem;">
<p>
Expand Down
8 changes: 7 additions & 1 deletion website/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
</template>

<script>
function getActualElementWidth(element) {
const style = window.getComputedStyle(element);
return element.offsetWidth + parseFloat(style.getPropertyValue("margin-right")) + parseFloat(style.getPropertyValue("margin-left"));
}
export default {
name: 'Header',
mounted() {
Expand All @@ -60,7 +66,7 @@ export default {
updateWidth() {
let totalChildWidth = 0;
for (const child of this.$refs.container.children) {
totalChildWidth += child.clientWidth;
totalChildWidth += getActualElementWidth(child);
}
this.menu_visible = totalChildWidth >= this.$el.clientWidth
},
Expand Down
4 changes: 1 addition & 3 deletions website/src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
Settings can be changed for the whole server (guild) or for individual channels. Channel settings take priority over server settings.
</p>

<h1>
Settings
</h1>
<hr>

<div v-for="(setting, index) in settings" v-bind:key="setting">
<code>{{ setting.name }}</code> - {{ setting.description }}
Expand Down

0 comments on commit 6f96633

Please sign in to comment.