Skip to content

Commit

Permalink
design fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
madeindjs committed Sep 19, 2024
1 parent 8d2b5ee commit ff2db00
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
33 changes: 21 additions & 12 deletions src/ui/src/components/core/content/CoreDataframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@
@action="handleActionRow"
@change="handleUpdateCell"
/>
<button
v-if="enableRecordAdd"
aria-label="Create a new row at the end"
class="CoreDataframe__newRow cell"
@click="handleAddRow"
>
<i class="material-symbols-outlined">add</i>
</button>
<div v-if="enableRecordAdd" class="CoreDataframe__newRow cell">
<button
class="CoreDataframe__newRow__btn"
aria-label="Create a new row at the end"
@click="handleAddRow"
>
<i class="material-symbols-outlined">add</i>
</button>
</div>
</div>
<div
v-if="isRowCountMassive"
Expand Down Expand Up @@ -650,12 +651,20 @@ onUnmounted(() => {
.CoreDataframe__newRow {
display: flex;
align-self: center;
justify-content: center;
justify-content: flex-start;
padding-left: 0;
}
.CoreDataframe__newRow__btn {
cursor: pointer;
background: transparent;
border: none;
background-color: var(--separatorColor);
border: 1px solid var(--emptinessColor);
height: 16px;
width: 16px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
}
.tools {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function onChange(event: InputEvent) {
gap: 8px;
align-items: center;
}
.CoreDataframeCellBoolean input {
cursor: pointer;
}
.CoreDataframeCellBoolean--disabled input {
cursor: not-allowed;
pointer-events: none;
Expand Down

0 comments on commit ff2db00

Please sign in to comment.