Skip to content

Commit 690258b

Browse files
authored
Merge pull request #120 from DMU-DebugVisual/inseong
상단 파일탭추가
2 parents cc06cb5 + 872d272 commit 690258b

File tree

2 files changed

+580
-134
lines changed

2 files changed

+580
-134
lines changed

src/components/ide/IDE.css

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,115 @@ body {
101101
overflow: hidden;
102102
}
103103

104+
.editor-tabs {
105+
display: flex;
106+
align-items: flex-end;
107+
background: var(--element);
108+
border-bottom: 1px solid var(--border);
109+
padding: 0 12px;
110+
gap: 4px;
111+
min-height: 40px;
112+
overflow-x: auto;
113+
scrollbar-width: thin;
114+
}
115+
116+
.editor-tabs::-webkit-scrollbar {
117+
height: 6px;
118+
}
119+
120+
.editor-tabs::-webkit-scrollbar-thumb {
121+
background-color: rgba(148, 163, 184, 0.4);
122+
border-radius: 4px;
123+
}
124+
125+
.editor-tab {
126+
position: relative;
127+
display: flex;
128+
align-items: center;
129+
gap: 6px;
130+
padding: 8px 14px;
131+
border: 1px solid transparent;
132+
border-radius: 6px 6px 0 0;
133+
background: transparent;
134+
color: var(--text-medium);
135+
font-size: 12px;
136+
font-weight: 500;
137+
cursor: pointer;
138+
transition: background-color 0.2s ease, color 0.2s ease;
139+
}
140+
141+
.editor-tab:hover {
142+
background: var(--element-light);
143+
color: var(--text);
144+
}
145+
146+
.editor-tab.active {
147+
background: var(--element);
148+
border-color: var(--border);
149+
border-bottom-color: var(--element);
150+
color: var(--text);
151+
font-weight: 600;
152+
box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.06);
153+
}
154+
155+
.tab-title {
156+
white-space: nowrap;
157+
max-width: 180px;
158+
overflow: hidden;
159+
text-overflow: ellipsis;
160+
}
161+
162+
.tab-dirty-indicator {
163+
font-size: 11px;
164+
color: var(--warning);
165+
line-height: 1;
166+
}
167+
168+
.tab-close {
169+
display: flex;
170+
align-items: center;
171+
justify-content: center;
172+
width: 18px;
173+
height: 18px;
174+
margin-left: 4px;
175+
border-radius: 4px;
176+
font-size: 14px;
177+
line-height: 1;
178+
cursor: pointer;
179+
color: inherit;
180+
background: transparent;
181+
opacity: 0;
182+
pointer-events: none;
183+
transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
184+
user-select: none;
185+
}
186+
187+
.editor-tab.active .tab-close,
188+
.editor-tab:not(.active):hover .tab-close {
189+
opacity: 1;
190+
pointer-events: auto;
191+
}
192+
193+
.tab-close:hover {
194+
background: rgba(148, 163, 184, 0.25);
195+
color: var(--text);
196+
}
197+
198+
.no-open-file-message {
199+
width: 100%;
200+
height: 100%;
201+
display: flex;
202+
align-items: center;
203+
justify-content: center;
204+
font-size: 13px;
205+
color: var(--text-medium);
206+
background: rgba(148, 163, 184, 0.08);
207+
border: 1px dashed var(--border);
208+
border-radius: 8px;
209+
text-align: center;
210+
padding: 0 16px;
211+
}
212+
104213
/* ============================================
105214
ModernSidebar (왼쪽 패널)
106215
============================================ */

0 commit comments

Comments
 (0)