mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-19 00:10:00 +00:00
Project tabs of a merged window group now share the row equally with the project name centred; the close button sits on the left and shows on hover or keyboard focus, and the selected tab is marked by its background instead of an accent underline. The folder icon is gone. Reordering, the context menu and keyboard navigation are unchanged. Closes #3266
74 lines
1.3 KiB
CSS
74 lines
1.3 KiB
CSS
.bar {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: var(--island-gap);
|
|
padding: 0 var(--island-gap) var(--island-gap);
|
|
min-width: 0;
|
|
}
|
|
.tabs {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 4px;
|
|
overflow-x: auto;
|
|
min-width: 0;
|
|
}
|
|
/* Tabs share the row equally with the title centred, the close button on the left on hover. */
|
|
.item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1 1 0;
|
|
min-width: 120px;
|
|
border-radius: var(--radius-small);
|
|
color: var(--fg-muted);
|
|
}
|
|
.close {
|
|
position: absolute;
|
|
left: 4px;
|
|
opacity: 0;
|
|
}
|
|
.item:hover .close,
|
|
.item:focus-within .close {
|
|
opacity: 1;
|
|
}
|
|
.item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.item {
|
|
touch-action: none;
|
|
user-select: none;
|
|
}
|
|
.dragging {
|
|
opacity: 0.55;
|
|
}
|
|
.selected,
|
|
.selected:hover {
|
|
background: var(--bg-island);
|
|
color: var(--fg);
|
|
}
|
|
.tab {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 30px;
|
|
padding: 0 28px;
|
|
border: 0;
|
|
color: inherit;
|
|
background: transparent;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.tab span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.tab:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
border-radius: var(--radius-small);
|
|
}
|