mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 21:54:47 +08:00
Issue: - window scrolls up/down though 'User agent' text field is not empty and no error message is being shown Changes: - Error text isn't re-set to an empty string, but is hidden/revealed as needed GIFs: Broken: https://imgur.com/ocufEEF Fixed: https://imgur.com/LmTAYqY Bug: 1159319 Change-Id: Ia2945e9562641f2dd78bd46c951626c0523150f1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2602551 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com> Commit-Queue: Michael Liao <michael.liao@microsoft.com>
104 lines
1.7 KiB
CSS
104 lines
1.7 KiB
CSS
/*
|
|
* Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
.network-config {
|
|
padding: 12px;
|
|
display: block;
|
|
}
|
|
|
|
.network-config-group {
|
|
display: flex;
|
|
margin-bottom: 10px;
|
|
flex-wrap: wrap;
|
|
flex: 0 0 auto;
|
|
min-height: 30px;
|
|
}
|
|
|
|
.network-config-title {
|
|
margin-right: 16px;
|
|
width: 130px;
|
|
}
|
|
|
|
.network-config-fields {
|
|
flex: 2 0 200px;
|
|
}
|
|
|
|
.panel-section-separator {
|
|
height: 1px;
|
|
margin-bottom: 10px;
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
/* Disable cache */
|
|
|
|
.network-config-disable-cache {
|
|
line-height: 28px;
|
|
border-top: none;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.network-config-input-validation-error {
|
|
color: var(--input-validation-error);
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.network-config-input-validation-error:empty {
|
|
display: none;
|
|
}
|
|
|
|
/* Network throttling */
|
|
|
|
.network-config-throttling .chrome-select {
|
|
width: 100%;
|
|
max-width: 250px;
|
|
}
|
|
|
|
.network-config-throttling > .network-config-title {
|
|
line-height: 24px;
|
|
}
|
|
|
|
/* User agent */
|
|
|
|
.network-config-ua > .network-config-title {
|
|
line-height: 20px;
|
|
}
|
|
|
|
.network-config-ua span[is="dt-radio"].checked > * {
|
|
display: none;
|
|
}
|
|
|
|
.network-config-ua input {
|
|
display: block;
|
|
width: calc(100% - 20px);
|
|
}
|
|
|
|
.network-config-ua input[readonly] {
|
|
background-color: rgb(235 235 228);
|
|
}
|
|
|
|
.network-config-ua input[type=text],
|
|
.network-config-ua .chrome-select {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.network-config-ua .chrome-select {
|
|
width: calc(100% - 20px);
|
|
max-width: 250px;
|
|
}
|
|
|
|
.network-config-ua span[is="dt-radio"] {
|
|
display: block;
|
|
}
|
|
|
|
.network-config-ua-custom {
|
|
opacity: 50%;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.network-config-ua-custom.checked {
|
|
opacity: 100%;
|
|
}
|