Skip to content

Commit b5b1eac

Browse files
committed
fix: make auth container responsive
1 parent 5f68d0e commit b5b1eac

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

packages/core/src/login/webview/vue/base.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,3 @@
99
/* Alignment */
1010
--auth-container-top: 15%;
1111
}
12-
13-
@media (max-width: 260px) {
14-
body {
15-
scale: 0.6;
16-
}
17-
}

packages/core/src/login/webview/vue/login.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ export default defineComponent({
592592
margin: auto;
593593
position: absolute;
594594
top: var(--auth-container-top);
595-
width: 260px;
595+
max-width: 260px;
596+
width: 90vw;
596597
}
597598
598599
.header {

packages/core/src/login/webview/vue/reauthenticate.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ button#reauthenticate {
203203
padding: 0.3rem;
204204
width: 80%;
205205
user-select: none;
206+
max-width: 260px;
206207
}
207208
208209
button#signout {

packages/core/src/login/webview/vue/selectableItem.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,10 @@ body.vscode-high-contrast:not(body.vscode-high-contrast-light) .icon .svg-path {
188188
body.vscode-high-contrast-light .icon .svg-path {
189189
fill: black;
190190
}
191+
192+
.item-container-base .text .p {
193+
white-space: nowrap;
194+
overflow: hidden;
195+
text-overflow: ellipsis;
196+
}
191197
</style>

0 commit comments

Comments
 (0)