0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 Fix file renaming on dashboard.

This commit is contained in:
Andrey Antukh 2021-01-20 22:50:18 +01:00
parent f0b9837407
commit 40e54dbbd4
2 changed files with 34 additions and 31 deletions

View file

@ -90,25 +90,25 @@
} }
.item-info { .item-info {
bottom: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
left: 0;
padding: $small; padding: $small;
position: absolute;
text-align: left; text-align: left;
width: 100%; width: 100%;
h3 { h3 {
border: 1px solid transparent;
color: $color-gray-60; color: $color-gray-60;
font-size: $fs15; font-size: $fs15;
font-weight: 400; font-weight: 400;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
height: 27px;
padding-right: $small; padding-right: $small;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 100%; width: 100%;
white-space: nowrap; white-space: nowrap;
line-height: 27px;
} }
span.date { span.date {
@ -121,8 +121,11 @@
.edit-wrapper { .edit-wrapper {
.element-title { .element-title {
padding: 3px; padding: 0px;
height: 25px; height: 25px;
color: $color-gray-60;
font-size: $fs15;
font-weight: 400;
} }
} }
@ -168,25 +171,25 @@
// PROJECTS, ELEMENTS & ICONS GRID // PROJECTS, ELEMENTS & ICONS GRID
&.project-th { &.project-th {
background-color: $color-white; background-color: $color-white;
// border: 2px solid $color-gray-10;
&:hover { &:hover {
border-color: $color-primary; border-color: $color-primary;
.project-th-actions { .project-th-actions {
display: flex; opacity: 1;
} }
} }
.project-th-actions { .project-th-actions {
align-items: center; align-items: center;
bottom: 4px; bottom: 2px;
display: none; opacity: 0;
left: 0; display: flex;
justify-content: flex-end; right: 5px;
padding: $small; justify-content: center;
position: absolute; position: absolute;
width: 100%; width: 15px;
height: 30px;
svg { svg {
fill: $color-gray-20; fill: $color-gray-20;
@ -206,8 +209,6 @@
&.menu { &.menu {
margin-right: 0; margin-right: 0;
width: 2rem;
height: 2rem;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: flex-end; align-items: flex-end;

View file

@ -152,7 +152,9 @@
(mf/deps file) (mf/deps file)
(fn [event] (fn [event]
(dom/stop-propagation event) (dom/stop-propagation event)
(swap! local assoc :edition true))) (swap! local assoc
:edition true
:menu-open false)))
] ]
[:div.grid-item.project-th {:on-click on-navigate} [:div.grid-item.project-th {:on-click on-navigate}