Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Oct 17, 2023
1 parent 6598b49 commit 35e0247
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/layout/components/appMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ const getSectionStyle = computed(() => {
return [
hideTabs.value && layout ? "padding-top: 48px;" : "",
!hideTabs.value && layout ? "padding-top: 85px;" : "",
hideTabs.value && !layout.value ? "padding-top: 48px" : "",
hideTabs.value && !layout.value ? "padding-top: 48px;" : "",
!hideTabs.value && !layout.value ? "padding-top: 85px;" : "",
props.fixedHeader ? "" : "padding-top: 0;"
props.fixedHeader
? ""
: `padding-top: 0;${
hideTabs.value
? "min-height: calc(100vh - 48px);"
: "min-height: calc(100vh - 86px);"
}`
];
});
Expand Down Expand Up @@ -161,7 +167,6 @@ const transitionMain = defineComponent({
display: flex;
flex-direction: column;
width: 100%;
min-height: calc(100vh - 86px);
}
.main-content {
Expand Down
13 changes: 11 additions & 2 deletions src/layout/components/footer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ const TITLE = getConfig("Title");
</script>

<template>
<footer class="layout-footer">MIT © 2020-PRESENT {{ TITLE }}</footer>
<footer class="layout-footer">
MIT © 2020-PRESENT
<a
class="ml-1 hover:text-primary"
href="https://github.com/pure-admin"
target="_blank"
>
{{ TITLE }}
</a>
</footer>
</template>

<style lang="scss" scoped>
Expand All @@ -14,7 +23,7 @@ const TITLE = getConfig("Title");
align-items: center;
justify-content: center;
width: 100%;
height: 50px;
padding: 0 0 8px;
color: #c0c4cc;
}
</style>

0 comments on commit 35e0247

Please sign in to comment.