Skip to content

Commit 2458353

Browse files
committed
updated version, css for difficulty filter
1 parent 324c35b commit 2458353

File tree

3 files changed

+69
-5
lines changed

3 files changed

+69
-5
lines changed

content.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Import fetchLeetCodeTags from leetcodeApi.js
2-
// (Assumes leetcodeApi.js is loaded before this script as per manifest)
3-
41
async function getProblemData() {
52
const titleEl = document.querySelector('div[class*="text-title-large"]');
63
const title = titleEl ? titleEl.textContent.trim() : "Unknown Title";

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"manifest_version": 2,
33
"name": "KeepCode",
4-
"version": "0.3.0",
5-
"description": "Prep smarter for coding interviews: KeepCode tracks your LeetCode progress so you can focus on solving.",
4+
"version": "0.3.5",
5+
"description": "Prep smarter for coding interviews! KeepCode tracks your LeetCode progress so you can focus on solving.",
66
"permissions": ["storage", "tabs", "activeTab", "https://leetcode.com/*"],
77
"background": {
88
"scripts": ["background.js"],

options/options.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,70 @@ a:hover {
274274
outline: none;
275275
border-color: #8868bd;
276276
}
277+
278+
/* Difficulty Dropdown Styles (to match Tag Dropdown) */
279+
.difficulty-dropdown,
280+
.difficulty-dropdown-selected,
281+
.difficulty-dropdown-list {
282+
position: relative;
283+
font-size: 1em;
284+
}
285+
.difficulty-dropdown-selected {
286+
background: #fff;
287+
border: 1px solid #d1d5db;
288+
border-radius: 5px;
289+
padding: 7px 12px;
290+
cursor: pointer;
291+
user-select: none;
292+
min-width: 120px;
293+
transition: border-color 0.15s;
294+
}
295+
.difficulty-dropdown-selected:focus {
296+
outline: none;
297+
border-color: #8868bd;
298+
}
299+
.difficulty-dropdown-list {
300+
position: absolute;
301+
top: 110%;
302+
left: 0;
303+
right: 0;
304+
background: #fff;
305+
border: 1px solid #d1d5db;
306+
border-radius: 5px;
307+
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
308+
z-index: 10;
309+
padding: 0;
310+
}
311+
.difficulty-dropdown-search {
312+
width: 100%;
313+
margin: 0;
314+
border-radius: 5px 5px 0 0;
315+
border-bottom: 1px solid #e5e7eb;
316+
border-top: none;
317+
border-left: none;
318+
border-right: none;
319+
box-sizing: border-box;
320+
padding: 10px 12px;
321+
font-size: 1em;
322+
background: #fafbfc;
323+
}
324+
.difficulty-dropdown-options {
325+
max-height: 180px;
326+
overflow-y: auto;
327+
padding-top: 4px;
328+
}
329+
.difficulty-dropdown-list {
330+
border-radius: 5px;
331+
overflow: hidden;
332+
}
333+
.difficulty-dropdown-option {
334+
padding: 7px 16px;
335+
cursor: pointer;
336+
transition: background 0.13s;
337+
color: #374151;
338+
}
339+
.difficulty-dropdown-option.selected,
340+
.difficulty-dropdown-option:hover {
341+
background: #f3f4f6;
342+
color: #8868bd;
343+
}

0 commit comments

Comments
 (0)