Skip to content

Commit 3d3e9e5

Browse files
committed
Try to fix UI bug #540
1 parent 25ed056 commit 3d3e9e5

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/components/GrampsjsChat.js

+13-12
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@ class GrampsjsChat extends GrampsjsTranslateMixin(LitElement) {
1818
sharedStyles,
1919
css`
2020
:host {
21-
height: 100%;
2221
display: flex;
22+
flex: 1;
23+
height: 100%;
2324
flex-direction: column;
2425
}
2526
2627
.outer {
28+
flex: 1;
2729
height: 100%;
2830
display: flex;
2931
flex-direction: column;
3032
}
3133
3234
.container {
35+
flex: 1;
3336
height: 100%;
3437
display: flex;
3538
flex-direction: column;
@@ -90,10 +93,8 @@ class GrampsjsChat extends GrampsjsTranslateMixin(LitElement) {
9093
9194
.clear-btn {
9295
position: relative;
93-
float: left;
9496
top: 20px;
9597
left: 0px;
96-
margin: 1px solid red;
9798
}
9899
`,
99100
]
@@ -114,16 +115,16 @@ class GrampsjsChat extends GrampsjsTranslateMixin(LitElement) {
114115

115116
render() {
116117
return html`
117-
<div class="clear-btn">
118-
<mwc-button
119-
raised
120-
label="${this._('New')}"
121-
icon="clear_all"
122-
@click="${this._handleClear}"
123-
?disabled=${this.messages.length === 0}
124-
></mwc-button>
125-
</div>
126118
<div class="outer">
119+
<div class="clear-btn">
120+
<mwc-button
121+
raised
122+
label="${this._('New')}"
123+
icon="clear_all"
124+
@click="${this._handleClear}"
125+
?disabled=${this.messages.length === 0}
126+
></mwc-button>
127+
</div>
127128
<div class="container">
128129
<div class="conversation">
129130
${

0 commit comments

Comments
 (0)