refactor: improve ui consistency

This commit is contained in:
liyasthomas
2022-04-05 14:55:30 +05:30
parent eea8a44746
commit c415fdb70a
3 changed files with 4 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ function appLayout() {
// Initially apply
onBeforeMount(() => {
if (mdAndLarger.value) {
if (!mdAndLarger.value) {
rightSidebar.value = false
columnLayout.value = true
}
@@ -95,7 +95,8 @@ function appLayout() {
// Listen for updates
watch(mdAndLarger, () => {
if (!mdAndLarger.value) {
if (mdAndLarger.value) rightSidebar.value = true
else {
rightSidebar.value = false
columnLayout.value = true
}