Browse Source

Merge pull request #3442 from nocodb/refactor/ui

refactor: minor ui chnages
pull/3444/head
navi 2 years ago committed by GitHub
parent
commit
c33bd125c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/nc-gui-v2/components/general/HelpAndSupport.vue
  2. 4
      packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue
  3. 3
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

5
packages/nc-gui-v2/components/general/HelpAndSupport.vue

@ -55,11 +55,6 @@ const openSwaggerLink = () => {
</a-list-item>
</template>
</GeneralSocialCard>
<div class="flex-1 my-2"></div>
<GeneralSponsors class="!w-full" />
<div class="min-h-10 w-full" />
</div>
</a-drawer>

4
packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue

@ -2,10 +2,12 @@
import CloseIcon from '~icons/material-symbols/close-rounded'
const { feedbackForm } = useGlobal()
const showForm = ref(false)
setTimeout(() => (showForm.value = true), 60000)
</script>
<template>
<div v-if="feedbackForm && !feedbackForm.isHidden" class="nc-feedback-form-wrapper mt-6">
<div v-if="showForm && feedbackForm && !feedbackForm.isHidden" class="nc-feedback-form-wrapper mt-6">
<CloseIcon class="nc-close-icon" @click="feedbackForm.isHidden = true" />
<iframe :src="feedbackForm.url" width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0">Loading </iframe>

3
packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

@ -93,9 +93,10 @@ watch(themePrimaryColor, (nextColor) => {
const tcolor = tinycolor(hexColor)
if (tcolor) {
const complement = tcolor.complement()
themeAccentColor.value = nextColor.hex8 ? theme.value.accentColor : complement.toHex8String()
saveTheme({
primaryColor: hexColor,
accentColor: nextColor.hex8 ? theme.value.accentColor : complement.toHex8String(),
accentColor: themeAccentColor.value,
})
}
})

Loading…
Cancel
Save