Browse Source

fix: update styles

pull/5627/head
DarkPhoenix2704 2 years ago
parent
commit
7164bccf63
  1. 6
      packages/nc-gui/components/dashboard/settings/Metadata.vue
  2. 15
      packages/nc-gui/components/dashboard/settings/Modal.vue
  3. 6
      packages/nc-gui/components/dashboard/settings/UIAcl.vue
  4. 2
      packages/nc-gui/components/tabs/auth/ApiTokenManagement.vue

6
packages/nc-gui/components/dashboard/settings/Metadata.vue

@ -90,7 +90,11 @@ const columns = [
<div class="flex flex-col w-3/5"> <div class="flex flex-col w-3/5">
<div class="flex flex-row justify-end items-center w-full mb-4"> <div class="flex flex-row justify-end items-center w-full mb-4">
<!-- Reload --> <!-- Reload -->
<a-button v-e="['a:proj-meta:meta-data:reload']" class="self-start nc-btn-metasync-reload" @click="loadMetaDiff"> <a-button
v-e="['a:proj-meta:meta-data:reload']"
class="self-start !rounded-md nc-btn-metasync-reload"
@click="loadMetaDiff"
>
<div class="flex items-center gap-2 text-gray-600 font-light"> <div class="flex items-center gap-2 text-gray-600 font-light">
<component :is="iconMap.reload" :class="{ 'animate-infinite animate-spin !text-success': isLoading }" /> <component :is="iconMap.reload" :class="{ 'animate-infinite animate-spin !text-success': isLoading }" />
{{ $t('general.reload') }} {{ $t('general.reload') }}

15
packages/nc-gui/components/dashboard/settings/Modal.vue

@ -178,13 +178,9 @@ watch(
<!-- Side tabs --> <!-- Side tabs -->
<a-layout-sider> <a-layout-sider>
<a-menu v-model:selected-keys="selectedTabKeys" class="tabs-menu h-full" :open-keys="[]"> <a-menu v-model:selected-keys="selectedTabKeys" class="tabs-menu h-full" :open-keys="[]">
<a-menu-item <a-menu-item v-for="(tab, key) of tabsInfo" :key="key" class="active:(!ring-0) hover:(!bg-primary !bg-opacity-25)">
v-for="(tab, key) of tabsInfo"
:key="key"
class="group active:(!ring-0) hover:(!bg-primary !bg-opacity-25)"
>
<div class="flex items-center space-x-2" @click="tab.onClick"> <div class="flex items-center space-x-2" @click="tab.onClick">
<component :is="tab.icon" class="group-hover:text-accent" /> <component :is="tab.icon" />
<div class="select-none"> <div class="select-none">
{{ tab.title }} {{ tab.title }}
@ -223,10 +219,10 @@ watch(
<div v-if="vDataState === ''" class="flex flex-row justify-end items-center w-full gap-1"> <div v-if="vDataState === ''" class="flex flex-row justify-end items-center w-full gap-1">
<a-button <a-button
v-if="dataSourcesAwakened" v-if="dataSourcesAwakened"
class="self-start nc-btn-new-datasource" class="self-start !rounded-md nc-btn-new-datasource"
@click="vDataState = DataSourcesSubTab.New" @click="vDataState = DataSourcesSubTab.New"
> >
<div v-if="vDataState === ''" class="flex items-center gap-2 text-primary font-light"> <div v-if="vDataState === ''" class="flex items-center gap-2 font-light">
<component :is="iconMap.plusCircle" class="group-hover:text-accent" /> <component :is="iconMap.plusCircle" class="group-hover:text-accent" />
New New
</div> </div>
@ -234,7 +230,8 @@ watch(
<!-- Reload --> <!-- Reload -->
<a-button <a-button
v-e="['a:proj-meta:data-sources:reload']" v-e="['a:proj-meta:data-sources:reload']"
class="self-start nc-btn-metasync-reload" type="text"
class="self-start !rounded-md nc-btn-metasync-reload"
@click="dataSourcesReload = true" @click="dataSourcesReload = true"
> >
<div class="flex items-center gap-2 text-gray-600 font-light"> <div class="flex items-center gap-2 text-gray-600 font-light">

6
packages/nc-gui/components/dashboard/settings/UIAcl.vue

@ -125,15 +125,15 @@ const columns = [
</template> </template>
</a-input> </a-input>
<a-button class="self-start nc-acl-reload" @click="loadTableList"> <a-button type="text" ghost class="self-start !rounded-md nc-acl-reload" @click="loadTableList">
<div class="flex items-center gap-2 text-gray-600 font-light"> <div class="flex items-center gap-2 text-gray-600 font-light">
<component :is="iconMap.reload" :class="{ 'animate-infinite animate-spin !text-success': isLoading }" /> <component :is="iconMap.reload" :class="{ 'animate-infinite animate-spin !text-success': isLoading }" />
Reload Reload
</div> </div>
</a-button> </a-button>
<a-button class="self-start nc-acl-save" @click="saveUIAcl"> <a-button type="primary" class="!rounded-md self-start nc-acl-save" @click="saveUIAcl">
<div class="flex items-center gap-2 text-gray-600 font-light"> <div class="flex items-center gap-2 text-white font-light">
<component :is="iconMap.save" /> <component :is="iconMap.save" />
Save Save
</div> </div>

2
packages/nc-gui/components/tabs/auth/ApiTokenManagement.vue

@ -164,7 +164,7 @@ onMounted(() => {
</div> </div>
</a-modal> </a-modal>
<div class="flex flex-col px-10 mt-6"> <div class="flex flex-col px-10">
<div class="flex flex-row justify-end"> <div class="flex flex-row justify-end">
<div class="flex flex-row space-x-1"> <div class="flex flex-row space-x-1">
<a-button size="middle" type="text" @click="loadApiTokens()"> <a-button size="middle" type="text" @click="loadApiTokens()">

Loading…
Cancel
Save