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

@@ -496,13 +496,6 @@ details summary::-webkit-details-marker {
}
}
// https://pqina.nl/blog/fix-google-mobile-usability-issues/
:where(body, iframe, pre, img, svg, video, canvas, select) {
@apply max-w-full;
@apply overflow-auto;
@apply break-words;
}
.env-highlight {
* {
@apply text-accentContrast;

View File

@@ -169,7 +169,7 @@
v-tippy="{ theme: 'tooltip' }"
:title="COLUMN_LAYOUT ? t('layout.row') : t('layout.column')"
svg="columns"
class="hidden transform sm:inline"
class="transform"
:class="{ 'rotate-90': !COLUMN_LAYOUT }"
@click.native="COLUMN_LAYOUT = !COLUMN_LAYOUT"
/>

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
}