Skip to content

admin mobile responsivity #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions resources/js/components/AdminCard.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div
:class="class"
class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm-light dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700">
class="block p-4 lg:p-6 bg-white border border-gray-200 rounded-lg shadow-sm-light dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700">
<slot></slot>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/admin/GlobalSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ watch(searchKey, debounce(async (e) => {
</script>

<template>
<div class="relative">
<div class="hidden relative lg:block">
<div class="relative">
<AppInput v-model="searchKey" type="text" placeholder="Hľadať..." class="w-[400px] outline-none focus:ring-0 focus:shadown-none" />
<span v-if="searchKey" @click="clearSearch" class="cursor-pointer absolute top-1/2 -translate-y-1/2 right-2.5 z-10">&times;</span>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/admin/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defineProps({
</script>

<template>
<div class="flex justify-between items-center mb-5">
<div class="lg:flex justify-between items-center mb-5">
<h1 class="font-semibold text-2xl">{{ title }}</h1>

<div class="flex items-center gap-x-5">
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/admin/TheSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const authStore = useAuthStore()
</script>

<template>
<aside class="fixed z-10 top-16 left-0 w-64 h-[calc(100%-2.5rem)]" aria-label="Sidenav">
<aside class="fixed z-10 top-16 -translate-x-full left-0 w-64 h-[calc(100%-2.5rem)]" aria-label="Sidenav">
<div
class="overflow-y-auto py-5 px-3 h-full bg-white border-r border-gray-200 dark:bg-gray-800 dark:border-gray-700">
<ul class="space-y-2">
Expand Down
8 changes: 4 additions & 4 deletions resources/js/views/admin/assignments/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
type="outline"
>Zobraziť</AppButton>

<AppButton :to="{name: 'admin.assignment-tests.index', id: assignment.id}" size="small" type="outline">
<AppButton :to="{name: 'admin.assignment-tests.index', id: assignment.id}" size="small" type="outline" class="hidden">
Testy
</AppButton>

<AppButton @click="submitForm" size="small" button>Aktualizovať</AppButton>
</PageHeader>

<div class="grid grid-cols-12 gap-8 items-start">
<div class="col-span-9">
<div class="grid lg:grid-cols-12 gap-8 items-start">
<div class="lg:col-span-9">
<AssignmentForm @processed="updateAssignment" :errors="errors" />
</div>

<div class="col-span-3">
<div class="lg:col-span-3">
<AdminCard class="mb-5">
<h3 class="mb-4 font-semibold">Publikovanie</h3>

Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/layouts/Admin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<TheSidebar />

<div class="relative pl-64 pt-16 min-h-[calc(100vh)] bg-[#FAFAFA]">
<div class="p-10">
<div class="relative lg:pl-64 pt-16 min-h-[calc(100vh)] bg-[#FAFAFA]">
<div class="p-4 lg:p-10">
<slot></slot>
</div>
</div>
Expand Down