Skip to content

Commit

Permalink
fix kanban card button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed Dec 31, 2023
1 parent 73a639f commit b9557c6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
5 changes: 5 additions & 0 deletions src/modules/Integrations/kanban/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ body:not(.is-mobile):not(.anp-hide-status-bar) .kanban-plugin__board > div {
.kanban-plugin__drag-container .callout-icon {
display: none;
}

/* Kanban conditional settings */
.setting-item[data-id="anp-kanban-hide-card-menus"]:not(:has(.is-enabled)) + [data-id="anp-kanban-hide-archive-btn"] {
display: none;
}
11 changes: 4 additions & 7 deletions src/modules/Integrations/kanban/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
}
&:not(.is-mobile) .kanban-plugin__item-prefix-button-wrapper {
background-color: var(--background-primary);
border-top-right-radius: var(--anp-kanban-card-radius, 6px);
display: none;
padding: 5px;
padding: 3px;
position: absolute;
right: -2px;
top: 0;
right: 1px;
top: 1px;
z-index: 1;
}
&:not(.is-mobile) .kanban-plugin__item:hover .kanban-plugin__item-prefix-button-wrapper {
Expand All @@ -44,7 +45,3 @@
display: none;
}
}

.setting-item[data-id="anp-kanban-hide-card-menus"]:not(:has(.is-enabled)) + [data-id="anp-kanban-hide-archive-btn"] {
display: none;
}
9 changes: 1 addition & 8 deletions src/modules/Integrations/kanban/cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,8 @@
}
.kanban-plugin__item-title-wrapper {
background-color: transparent;
column-gap: 5px;
padding: 8px;
div:first-child > a.clickable-icon {
position: relative;
left: -2px;
}
div:last-child > a.clickable-icon {
position: relative;
right: -2px;
}
}
.kanban-plugin__item .kanban-plugin__item-metadata {
display: flex;
Expand Down

0 comments on commit b9557c6

Please sign in to comment.