mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
WebKit doesn't focus a clicked button, so focus moved to the editor area outside the merge editor and cleared the focused merge editor; Apply, Cancel, Accept Yours/Theirs and the toolbar actions then did nothing on a mouse click. The merge editor root is now focusable (tabindex -1) so a click inside it keeps focus there.
97 lines
1.6 KiB
CSS
97 lines
1.6 KiB
CSS
.root {
|
|
flex: 1;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-app);
|
|
outline: none;
|
|
}
|
|
.toolbar {
|
|
flex: none;
|
|
height: var(--h-header);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.sep {
|
|
width: 1px;
|
|
height: 14px;
|
|
margin: 0 4px;
|
|
background: var(--border-strong);
|
|
}
|
|
.status {
|
|
margin-left: auto;
|
|
padding: 0 8px;
|
|
color: var(--vcs-conflict);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.statusDone {
|
|
color: var(--fg-muted);
|
|
}
|
|
.labels {
|
|
flex: none;
|
|
height: var(--h-row);
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--fg-secondary);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.labels > span {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
}
|
|
.labels > span + span {
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.panes {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
}
|
|
.panes[hidden] {
|
|
display: none;
|
|
}
|
|
.pane {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
.pane + .pane {
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.pane > :global(.cm-editor) {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.footer {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.footerGroup {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.message {
|
|
flex: 1;
|
|
outline: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 24px;
|
|
color: var(--fg-subtle);
|
|
}
|