Skip to content

Commit a099fcb

Browse files
committed
feat: hide endpoint buttons on smaller screens (fixes #60)
1 parent ef2a76f commit a099fcb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/yasgui/src/endpointSelect.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
margin: 4px 0px;
55
border: 2px solid #ccc;
66
width: 100%;
7+
min-width: 200px;
78
&:hover {
89
border-color: #bbb;
910
}
@@ -125,6 +126,11 @@
125126
align-items: center;
126127
gap: 4px;
127128
margin-left: 4px;
129+
130+
// Hide on small screens (mobile)
131+
@media (max-width: 768px) {
132+
display: none;
133+
}
128134
}
129135

130136
.endpointButton {
@@ -152,5 +158,11 @@
152158
outline: 2px solid var(--yasgui-endpoint-button-focus, #5cb3fd);
153159
outline-offset: 2px;
154160
}
161+
162+
// Reduce padding on medium screens
163+
@media (max-width: 1024px) {
164+
padding: 4px 8px;
165+
font-size: 12px;
166+
}
155167
}
156168
}

0 commit comments

Comments
 (0)