1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-30 15:58:06 +09:00

fix(ui): responsive design (#216)

This commit is contained in:
webfansplz 2022-11-29 20:54:41 +08:00 committed by GitHub
parent b0f0b958ae
commit cf2d22cb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,10 +14,10 @@
</div> </div>
</aside> </aside>
<NavBottom v-if="isSmallScreen" /> <NavBottom v-if="isSmallScreen" />
<div class="w-full mb14 md:(w-2/4 mb0) min-h-screen" border="l r base"> <div class="w-full mb14 md:(w-3/4 mb0) lg:(w-2/4 mb0) min-h-screen" border="l r base">
<slot /> <slot />
</div> </div>
<aside class="hidden md:block w-1/4 zen-hide"> <aside class="hidden md:none lg:block w-1/4 zen-hide">
<div sticky top-0 h-screen flex="~ col"> <div sticky top-0 h-screen flex="~ col">
<slot name="right"> <slot name="right">
<UserSignInEntry v-if="!currentUser" /> <UserSignInEntry v-if="!currentUser" />
@ -29,8 +29,9 @@
<button <button
m5 p2 rounded-full text-start w-full m5 p2 rounded-full text-start w-full
hover:bg-active cursor-pointer transition-100 hover:bg-active cursor-pointer transition-100
class="md:(w-7.5/10 rounded-5)"
> >
<AccountInfo :account="currentUser.account" /> <AccountInfo :account="currentUser.account" md:flex="col" md:break-words />
</button> </button>
<template #popper> <template #popper>
<UserSwitcher /> <UserSwitcher />