Skip to content

Commit 7b14ca0

Browse files
fix: fix some existing css
The icon has a default padding but it is not necessary anymore. Some additional adjustments were removed since they are not necessary either Signed-off-by: Nikolas Komonen <[email protected]>
1 parent 8b67c76 commit 7b14ca0

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

resources/css/base.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ textarea {
237237
display: inline;
238238
height: 16px;
239239
width: 16px;
240-
padding: 8px;
241240
background-repeat: no-repeat;
242241
background-position: center;
243242
}

scripts/build/generateIcons.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function generate(mappings: Record<string, number | undefined> = {}) {
102102
files: iconSources,
103103
fontName: fontId,
104104
formats: ['woff'],
105-
startUnicode: 0xe000,
105+
startUnicode: 0xf000,
106106
verbose: true,
107107
normalize: true,
108108
sort: true,
@@ -201,11 +201,10 @@ async function loadCodiconMappings(): Promise<Record<string, number | undefined>
201201
const codicons = path.join(projectDir, 'node_modules', '@vscode', 'codicons', 'src')
202202
const data = JSON.parse(await fs.readFile(path.join(codicons, 'template', 'mapping.json'), 'utf-8'))
203203
const mappings: Record<string, number | undefined> = {}
204-
let counter = 0xf000
205204
for (const [k, v] of Object.entries(data)) {
206205
if (typeof k === 'string' && typeof v === 'number') {
207-
mappings[`vscode-${k}`] = counter
208-
counter += 1
206+
// Assumption in the 0XE000 range, verify in mapping.json if needed
207+
mappings[`vscode-${k}`] = v
209208
}
210209
}
211210

src/codecatalyst/vue/summary.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export default defineComponent({
157157
158158
#stop-icon {
159159
color: var(--vscode-debugIcon-stopForeground);
160-
padding: 4px;
160+
margin-right: 5px;
161161
vertical-align: -0.2em;
162162
}
163163
</style>

0 commit comments

Comments
 (0)