-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
70 lines (62 loc) · 1.52 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<title>Medium Reads Logger</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
padding: 10px;
min-width: 400px; /* Set a reasonable minimum width */
max-width: 800px; /* Prevent the popup from being too wide */
}
ul {
padding-left: 0;
max-width: 100%;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border: 1px solid #e0e0e0;
border-radius: 5px;
margin-bottom: 10px;
background-color: #f8f9fa;
}
a {
color: #007bff;
text-decoration: none;
flex: 1;
margin-right: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
a:hover {
text-decoration: underline;
}
.delete-btn {
color: #dc3545;
cursor: pointer;
margin-left: 10px;
}
.delete-btn:hover {
color: #bd2130;
}
small {
display: block;
color: #555;
margin-top: 5px;
}
</style>
</head>
<body>
<h1 class="text-center mb-4">Your Medium Reads</h1>
<div id="message" style="font-size: 16px; color: #888; margin-bottom: 10px;"></div>
<ul id="reads"></ul>
<script src="popup.js"></script>
</body>
</html>