Skip to content

Commit 0a8eb15

Browse files
authored
Embedding Projector: fix regex suffix css (#6329)
## Motivation for features / changes The regex end slash and the regex button did not fit in the same line. ## Technical description of changes There should be a single suffix slot element that flex in the correct direction ## Screenshots of UI changes ### Before <img width="141" alt="Screenshot 2023-04-17 at 8 18 31 PM" src="https://user-images.githubusercontent.com/31378877/232662251-e2b6dcf4-d6e4-4ea2-8334-cf79e7da26fe.png"> ### After ![image](https://user-images.githubusercontent.com/31378877/232662384-e20d71d6-b152-4bcf-9f04-71bd5ee8b156.png) ## Detailed steps to verify changes work correctly (as executed by you) Open the regex option in input ## Alternate designs / implementations considered
1 parent c545a2c commit 0a8eb15

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

0 commit comments

Comments
 (0)