mirror of
https://github.com/penpot/penpot.git
synced 2026-11-04 17:10:39 +00:00
Comments written for the duplicate-file prototype still described a branch as a copy of its file, a merge as clean-only, token diffing as missing, a review as a read-only snapshot, and file_change rows as living for the team deletion delay. Each now states what the code at this revision does: a branch is a file row derived from a pinned base plus its op log, every change kind except :page-attrs is translated, merges apply resolutions, a review opens the live editable branch, an update squashes the log and repositions the base, and file_change rows expire after one hour. The audited docstring names the props it sets, the step 6 comment says each revn counter starts at its own side, and handle-file-merged names both topics it arrives on. Comment, docstring, and SQL-comment lines only. clj-kondo reports no errors on the touched Clojure files. Translations are untouched. AI-assisted-by: claude-opus-5-5
168 lines
3.6 KiB
SCSS
168 lines
3.6 KiB
SCSS
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
//
|
|
// Copyright (c) KALEIDOS SUBSIDIARY SL
|
|
|
|
@use "refactor/common-refactor.scss" as deprecated;
|
|
|
|
.workspace-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: deprecated.$s-12 deprecated.$s-12 deprecated.$s-8 deprecated.$s-12;
|
|
min-height: deprecated.$s-52;
|
|
}
|
|
|
|
.main-icon {
|
|
@include deprecated.flex-center;
|
|
|
|
width: deprecated.$s-32;
|
|
height: deprecated.$s-32;
|
|
min-height: deprecated.$s-32;
|
|
margin-right: deprecated.$s-4;
|
|
|
|
svg {
|
|
min-height: deprecated.$s-32;
|
|
width: deprecated.$s-32;
|
|
fill: var(--icon-foreground-hover);
|
|
}
|
|
}
|
|
|
|
.project-tree {
|
|
position: relative;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
height: deprecated.$s-32;
|
|
min-height: deprecated.$s-32;
|
|
}
|
|
|
|
.project-name,
|
|
.file-name {
|
|
@include deprecated.uppercase-title-typography;
|
|
@include deprecated.text-ellipsis;
|
|
|
|
height: deprecated.$s-16;
|
|
width: 100%;
|
|
padding-bottom: deprecated.$s-2;
|
|
color: var(--title-foreground-color);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.file-name {
|
|
@include deprecated.small-title-typography;
|
|
|
|
text-transform: none;
|
|
color: var(--title-foreground-color-hover);
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.file-name-label {
|
|
@include deprecated.text-ellipsis;
|
|
}
|
|
|
|
.file-name-input {
|
|
@include deprecated.flex-center;
|
|
|
|
width: 100%;
|
|
margin: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
border-radius: deprecated.$br-4;
|
|
background-color: var(--input-background-color);
|
|
font-size: deprecated.$fs-14;
|
|
color: var(--input-foreground-color);
|
|
z-index: deprecated.$z-index-20;
|
|
white-space: break-spaces;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.branch-badge {
|
|
@include deprecated.flex-center;
|
|
|
|
flex-shrink: 0;
|
|
width: deprecated.$s-16;
|
|
height: deprecated.$s-16;
|
|
margin-right: deprecated.$s-6;
|
|
border-radius: deprecated.$br-4;
|
|
background-color: var(--button-secondary-background-color-rest);
|
|
color: var(--button-secondary-foreground-color-rest);
|
|
}
|
|
|
|
// pull request review: accent-colored so an active review stands out from
|
|
// the plain branch badge (the file is still the live, editable branch)
|
|
.review-badge {
|
|
@include deprecated.flex-center;
|
|
|
|
flex-shrink: 0;
|
|
width: deprecated.$s-16;
|
|
height: deprecated.$s-16;
|
|
margin-right: deprecated.$s-6;
|
|
border-radius: deprecated.$br-4;
|
|
background-color: var(--button-primary-background-color-rest);
|
|
color: var(--button-primary-foreground-color-rest);
|
|
}
|
|
|
|
.shared-badge {
|
|
@include deprecated.flex-center;
|
|
|
|
width: deprecated.$s-16;
|
|
height: deprecated.$s-32;
|
|
margin-right: deprecated.$s-4;
|
|
|
|
svg {
|
|
stroke: var(--button-secondary-foreground-color-rest);
|
|
fill: none;
|
|
height: deprecated.$s-16;
|
|
width: deprecated.$s-16;
|
|
}
|
|
}
|
|
|
|
.status-notification {
|
|
width: deprecated.$s-6;
|
|
height: deprecated.$s-6;
|
|
border-radius: 50%;
|
|
margin-right: deprecated.$s-4;
|
|
flex-shrink: 0;
|
|
|
|
&.pending-status {
|
|
background-color: var(--status-widget-background-color-warning);
|
|
}
|
|
|
|
&.saving-status {
|
|
background-color: var(--status-widget-background-color-pending);
|
|
}
|
|
|
|
&.saved-status {
|
|
background-color: var(--status-widget-background-color-success);
|
|
animation: jump 0.3s ease-out;
|
|
}
|
|
|
|
&.retrying-status {
|
|
background-color: var(--status-widget-background-color-warning);
|
|
}
|
|
|
|
&.error-status {
|
|
background-color: var(--status-widget-background-color-error);
|
|
}
|
|
}
|
|
|
|
@keyframes jump {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
}
|