diff --git a/cms/src/components/BasePage.vue b/cms/src/components/BasePage.vue index d4f5ba88a6..47004fa70a 100644 --- a/cms/src/components/BasePage.vue +++ b/cms/src/components/BasePage.vue @@ -33,7 +33,7 @@ const router = useRouter(); const isEditContentPage = computed(() => router.currentRoute.value.name === "edit"); const isEditLanguagePage = computed(() => router.currentRoute.value.name === "language"); const breakpoints = useBreakpoints(breakpointsTailwind); -const isMobileScreen = breakpoints.smaller("lg"); +const isLargeScreen = breakpoints.smaller("lg"); const handleMobileSidebarToggle = () => { if (isEditContentPage.value) router.push({ name: "overview" }); @@ -54,7 +54,7 @@ const handleMobileSidebarToggle = () => { ]" > @@ -307,8 +305,8 @@ const onInlineBackspace = () => { class="relative flex w-full justify-between gap-2 rounded-md bg-white focus-within:outline focus-within:outline-offset-[-2px] focus-within:outline-zinc-950" :class="{ 'border-[1px] border-zinc-300': !noBorder, - 'pl-1 pr-3': smallInput && isMobileScreen, - 'pl-3 pr-3': !smallInput || !isMobileScreen, + 'pl-1 pr-3': smallInput && isLargeScreen, + 'pl-3 pr-3': !smallInput || !isLargeScreen, }" tabindex="0" v-bind="attrsWithoutStyles" @@ -329,9 +327,7 @@ const onInlineBackspace = () => { ref="inputElement" class="z-0 w-full flex-1 border-0 bg-transparent p-0 text-zinc-900 ring-zinc-300 placeholder:text-sm placeholder:text-zinc-400 focus:ring-0" :class="[ - smallInput && isMobileScreen - ? 'h-[30px] text-sm' - : 'h-[38px]', + smallInput && isLargeScreen ? 'h-[30px] text-sm' : 'h-[38px]', { 'w-96': $slots.actions && !isSmallScreen }, ]" :placeholder="placeholder ?? 'Type to select...'" diff --git a/cms/src/components/groups/EditAclByGroup.vue b/cms/src/components/groups/EditAclByGroup.vue index 9364a24247..bd19f22fbd 100644 --- a/cms/src/components/groups/EditAclByGroup.vue +++ b/cms/src/components/groups/EditAclByGroup.vue @@ -6,7 +6,7 @@ import { type GroupDto, AclPermission, type GroupAclEntryDto } from "luminary-sh import { capitaliseFirstLetter, getTheFirstLetter } from "@/util/string"; import { validDocTypes, isPermissionAvailable } from "./permissions"; import _ from "lodash"; -import { isMobileScreen } from "@/globalConfig"; +import { isLargeScreen } from "@/globalConfig"; import DisplayCard from "@/components/common/DisplayCard.vue"; import LModal from "../modals/LModal.vue"; import LButton from "@/components/button/LButton.vue"; @@ -119,7 +119,7 @@ onMounted(() => {