Skip to content

Commit

Permalink
style: Update appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzhi33 committed Sep 4, 2024
1 parent 4de74f0 commit bbcb9f0
Showing 1 changed file with 41 additions and 30 deletions.
71 changes: 41 additions & 30 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,37 @@ const isChangelog = ref(false);
</div>

<div class="mt-3 action-btns row">

<div class="col-lg-4 col-12 mb-2 mb-lg-0">
<div class="menu-card">
<div class="menu-card-title">
<i class="fa fa-fw fa-cog"></i>
{{ t('actions') }}
</div>
<div class="menu-card-items">
<a class="menu-card-item" href="#" @click.prevent="refresh">
<i class="fa fa-fw fa-refresh"></i> {{ t('refresh') }}
</a>
<Transition>
<a class="menu-card-item" href="javascript:;" v-if="isAdmin" @click="isSyncing = true">
<i class="fa fa-fw fa-plus"></i> {{ t('fastAdd') }}
</a>
</Transition>
<Transition>
<a class="menu-card-item" href="javascript:;" v-tooltip="t('logoutTip')" v-if="isAdmin" @click="logout">
<i class="fa fa-fw fa-user"></i> {{ username }} ({{ t('admin') }})
</a>
</Transition>
<Transition>
<a class="menu-card-item" href="javascript:;" v-tooltip="t('logoutTip')" v-if="isNormalUser"
@click="logout">
<i class="fa fa-fw fa-user"></i> {{ username }} ({{ t('normalUser') }})
</a>
</Transition>
</div>
</div>
</div>

<div class="col-lg-4 col-6">
<div class="menu-card">
<div class="menu-card-title">
Expand Down Expand Up @@ -240,36 +271,6 @@ const isChangelog = ref(false);
</div>
</div>

<div class="col-lg-4 col-12 mt-2 mt-lg-0">
<div class="menu-card">
<div class="menu-card-title">
<i class="fa fa-fw fa-cog"></i>
{{ t('actions') }}
</div>
<div class="menu-card-items">
<a class="menu-card-item" href="#" @click.prevent="refresh">
<i class="fa fa-fw fa-refresh"></i> {{ t('refresh') }}
</a>
<Transition>
<a class="menu-card-item" href="javascript:;" v-if="isAdmin" @click="isSyncing = true">
<i class="fa fa-fw fa-plus"></i> {{ t('fastAdd') }}
</a>
</Transition>
<Transition>
<a class="menu-card-item" href="javascript:;" v-tooltip="t('logoutTip')" v-if="isAdmin" @click="logout">
<i class="fa fa-fw fa-user"></i> {{ username }} ({{ t('admin') }})
</a>
</Transition>
<Transition>
<a class="menu-card-item" href="javascript:;" v-tooltip="t('logoutTip')" v-if="isNormalUser"
@click="logout">
<i class="fa fa-fw fa-user"></i> {{ username }} ({{ t('normalUser') }})
</a>
</Transition>
</div>
</div>
</div>

</div>

<List ref="mlist" :isPC :isAdmin :search :status :tag v-model:isSyncing="isSyncing"
Expand Down Expand Up @@ -367,4 +368,14 @@ const isChangelog = ref(false);
--text-color: white;
}
}
@media (max-width: 768px) {
.action-btns .col-6:nth-last-child(2) {
padding-right: 5px;
}
.action-btns .col-6:last-child {
padding-left: 5px;
}
}
</style>

0 comments on commit bbcb9f0

Please sign in to comment.