refactor: improve ui consistency
This commit is contained in:
@@ -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 {
|
.env-highlight {
|
||||||
* {
|
* {
|
||||||
@apply text-accentContrast;
|
@apply text-accentContrast;
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="COLUMN_LAYOUT ? t('layout.row') : t('layout.column')"
|
:title="COLUMN_LAYOUT ? t('layout.row') : t('layout.column')"
|
||||||
svg="columns"
|
svg="columns"
|
||||||
class="hidden transform sm:inline"
|
class="transform"
|
||||||
:class="{ 'rotate-90': !COLUMN_LAYOUT }"
|
:class="{ 'rotate-90': !COLUMN_LAYOUT }"
|
||||||
@click.native="COLUMN_LAYOUT = !COLUMN_LAYOUT"
|
@click.native="COLUMN_LAYOUT = !COLUMN_LAYOUT"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ function appLayout() {
|
|||||||
|
|
||||||
// Initially apply
|
// Initially apply
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
if (mdAndLarger.value) {
|
if (!mdAndLarger.value) {
|
||||||
rightSidebar.value = false
|
rightSidebar.value = false
|
||||||
columnLayout.value = true
|
columnLayout.value = true
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,8 @@ function appLayout() {
|
|||||||
|
|
||||||
// Listen for updates
|
// Listen for updates
|
||||||
watch(mdAndLarger, () => {
|
watch(mdAndLarger, () => {
|
||||||
if (!mdAndLarger.value) {
|
if (mdAndLarger.value) rightSidebar.value = true
|
||||||
|
else {
|
||||||
rightSidebar.value = false
|
rightSidebar.value = false
|
||||||
columnLayout.value = true
|
columnLayout.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user