mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
Merge pull request #1846 from penpot/alotor-bugfixes
Fix focus mode problem
This commit is contained in:
commit
a7ded66eab
2 changed files with 17 additions and 10 deletions
|
@ -125,25 +125,34 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
display: grid;
|
||||
align-items: center;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-column-gap: 8px;
|
||||
cursor: pointer;
|
||||
|
||||
& .back-button {
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
transform: rotate(180deg);
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
& svg {
|
||||
fill: $color-white;
|
||||
transform: rotate(180deg);
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
svg {
|
||||
fill: $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& svg {
|
||||
fill: $color-white;
|
||||
}
|
||||
& .focus-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
& .focus-mode {
|
||||
|
|
|
@ -498,11 +498,9 @@
|
|||
[:div#layers.tool-window
|
||||
(if (d/not-empty? focus)
|
||||
[:div.tool-window-bar
|
||||
[:div.focus-title
|
||||
[:button.back-button
|
||||
{:on-click #(st/emit! (dw/toggle-focus-mode))}
|
||||
i/arrow-slide]
|
||||
[:span (or title (tr "workspace.focus.selection"))]
|
||||
[:div.focus-title {:on-click #(st/emit! (dw/toggle-focus-mode))}
|
||||
[:button.back-button i/arrow-slide]
|
||||
[:div.focus-name (or title (tr "workspace.focus.selection"))]
|
||||
[:div.focus-mode (tr "workspace.focus.focus-mode")]]]
|
||||
|
||||
filter-component)
|
||||
|
|
Loading…
Add table
Reference in a new issue