Browse Source

Merge pull request #2582 from nocodb/fix/1516-fixed-dark-mode-bug-in-edit-column-and-styling-issue-with-toggle-comment-button

Fixed dark mode styling bug with edit column and styling issues with toggle comments button
pull/2611/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
af386331b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue
  2. 9
      packages/nc-gui/components/project/spreadsheet/components/ExpandedForm.vue
  3. 2
      packages/nc-gui/components/project/spreadsheet/components/editColumn/DurationOptions.vue
  4. 1
      packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue

8
packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue

@ -71,7 +71,7 @@
item-value="name" item-value="name"
item-text="name" item-text="name"
class="caption ui-type nc-ui-dt-dropdown" class="caption ui-type nc-ui-dt-dropdown"
:class="{ 'primary lighten-5': newColumn.uidt }" :class="{ 'primary lighten-5': newColumn.uidt && !isDark }"
:label="$t('labels.columnType')" :label="$t('labels.columnType')"
dense dense
outlined outlined
@ -80,10 +80,12 @@
> >
<template #selection="{ item }"> <template #selection="{ item }">
<div> <div>
<v-icon color="grey darken-4" small class="mr-1"> <v-icon color="isDark? 'white'? 'grey darken-4'" small class="mr-1">
{{ item.icon }} {{ item.icon }}
</v-icon> </v-icon>
<span class="caption grey--text text--darken-4"> {{ item.name }}</span> <span class="caption" :class="{ 'grey--text text--darken-4': !isDark }">
{{ item.name }}
</span>
</div> </div>
</template> </template>

9
packages/nc-gui/components/project/spreadsheet/components/ExpandedForm.vue

@ -1,7 +1,7 @@
<template> <template>
<v-card width="1000" max-width="100%"> <v-card width="1000" max-width="100%">
<v-toolbar height="55" class="elevation-1"> <v-toolbar height="55" class="elevation-1">
<div class="d-100 d-flex"> <div class="header d-100 d-flex">
<h5 class="title text-center"> <h5 class="title text-center">
<v-icon :color="iconColor"> mdi-table-arrow-right </v-icon> <v-icon :color="iconColor"> mdi-table-arrow-right </v-icon>
@ -17,10 +17,9 @@
<v-btn small text @click="reload"> <v-btn small text @click="reload">
<v-icon small> mdi-reload </v-icon> <v-icon small> mdi-reload </v-icon>
</v-btn> </v-btn>
<x-icon <x-icon
v-if="!isNew && _isUIAllowed('rowComments')" v-if="!isNew && _isUIAllowed('rowComments')"
icon-class="mr-2" icon-class="ml-1 mr-2 px-1 py-1"
tooltip="Toggle comments" tooltip="Toggle comments"
small small
text text
@ -671,6 +670,10 @@ h5 {
background: var(--v-backgroundColorDefault-base); background: var(--v-backgroundColorDefault-base);
} }
.header {
display: flex;
align-items: center;
}
.nc-chip { .nc-chip {
padding: 8px; padding: 8px;
border-radius: 8px; border-radius: 8px;

2
packages/nc-gui/components/project/spreadsheet/components/editColumn/DurationOptions.vue

@ -15,7 +15,7 @@
> >
<template #selection="{ item }"> <template #selection="{ item }">
<div> <div>
<span class="caption grey--text text--darken-4"> <span class="caption" color="text">
{{ item.title }} {{ item.title }}
</span> </span>
</div> </div>

1
packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue

@ -42,6 +42,7 @@
<color-picker <color-picker
v-model="colMeta.color" v-model="colMeta.color"
row-size="8" row-size="8"
class="backgroundColorDefault"
:colors="['#fcb401', '#faa307', '#f48c06', '#e85d04', '#dc2f02', '#d00000', '#9d0208', '#777']" :colors="['#fcb401', '#faa307', '#f48c06', '#e85d04', '#dc2f02', '#d00000', '#9d0208', '#777']"
/> />
</div> </div>

Loading…
Cancel
Save