Skip to content

Commit 426d8ef

Browse files
committed
Embedding Projector: fix regex suffix css
1 parent 963afb7 commit 426d8ef

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

tensorboard/plugins/projector/vz_projector/vz-projector-input.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License.
1414
==============================================================================*/
15-
import {customElement, property} from '@polymer/decorators';
16-
import {html, PolymerElement} from '@polymer/polymer';
15+
import { customElement, property } from '@polymer/decorators';
16+
import { html, PolymerElement } from '@polymer/polymer';
1717
import '../../../components/polymer/irons_and_papers';
18-
import {LegacyElementMixin} from '../../../components/polymer/legacy_element_mixin';
18+
import { LegacyElementMixin } from '../../../components/polymer/legacy_element_mixin';
1919
import './styles';
2020

2121
export interface InputChangedListener {
@@ -47,12 +47,17 @@ class ProjectorInput extends LegacyElementMixin(PolymerElement) {
4747
background-color: #880e4f;
4848
color: white;
4949
}
50+
51+
.suffix {
52+
display: flex;
53+
flex-direction: row;
54+
}
5055
</style>
5156
5257
<paper-input label="[[label]]">
5358
<div class="slash" prefix slot="prefix">/</div>
54-
<div class="slash" suffix slot="suffix">/</div>
55-
<div suffix slot="suffix">
59+
<div class="suffix" suffix slot="suffix">
60+
<div class="slash">/</div>
5661
<paper-button id="regex" toggles class="toggle">.*</paper-button>
5762
</div>
5863
</paper-input>
@@ -66,11 +71,11 @@ class ProjectorInput extends LegacyElementMixin(PolymerElement) {
6671
</paper-tooltip>
6772
<span class="info">[[message]]</span>
6873
`;
69-
@property({type: String})
74+
@property({ type: String })
7075
label: string;
7176

7277
/** Message that will be displayed at the bottom of the input control. */
73-
@property({type: String})
78+
@property({ type: String })
7479
message: string;
7580

7681
private textChangedListeners: InputChangedListener[];

0 commit comments

Comments
 (0)