Skip to content

Commit 06037de

Browse files
committed
somehow working UI
1 parent 917d261 commit 06037de

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src-website/app/components/demo/demo.component.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
@import '~@angular/material/theming';
1+
@import "~@angular/material/theming";
22

33
main {
4-
54
&.fullscreen {
65
section {
76
display: none;
@@ -21,7 +20,7 @@ main {
2120
bottom: 32%;
2221
right: 32px;
2322

24-
@media (max-width: 570px) {
23+
@media (max-width: 570px) {
2524
left: calc(25% - 28px);
2625
bottom: 28px;
2726
}
@@ -52,5 +51,16 @@ main {
5251
@include mat-elevation(4);
5352
margin: 32px 0;
5453
width: 100%;
54+
mat-grid-list:nth-child(1){
55+
display: flex !important;
56+
flex-flow: row nowrap !important;
57+
width: 100% !important;
58+
}
5559
}
5660
}
61+
62+
#container-right-column{
63+
display: flex !important;
64+
flex-flow: row nowrap !important;
65+
width: 100% !important;
66+
}

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</mat-toolbar>
7676
</ng-template>
7777

78-
<mat-grid-list cols="4" rowHeight="fit">
78+
<mat-grid-list cols="4" rowHeight="fit" id="container-right-column">
7979
<mat-grid-tile class="toolbar" [colspan]="toolbarCollapsed ? 0 : 1">
8080
<div class="toolbar-inner">
8181

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/src/app/components/app/app.component.scss

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~@angular/material/theming';
1+
@import "~@angular/material/theming";
22

33
$toolbar-zindex: 30;
44

@@ -13,7 +13,6 @@ $toolbar-zindex: 30;
1313
}
1414

1515
mat-toolbar {
16-
1716
&.main-toolbar {
1817
padding: 0 16px;
1918

@@ -100,7 +99,8 @@ $toolbar-zindex: 30;
10099
overflow-x: hidden;
101100

102101
.entities-list {
103-
102+
display: flex !important;
103+
flex-flow: column wrap !important;
104104
[mat-icon-button] {
105105
width: 20px;
106106
height: 20px;
@@ -127,11 +127,9 @@ $toolbar-zindex: 30;
127127
}
128128

129129
.mat-line {
130-
131130
@media (max-width: 1024px) {
132131
margin: 0 -12px;
133132
}
134-
135133
}
136134
}
137135

@@ -198,8 +196,8 @@ $toolbar-zindex: 30;
198196
}
199197

200198
@media (max-width: 330px) {
201-
margin-left: 16px;
202-
margin-top: 8px;
199+
margin-left: 16px;
200+
margin-top: 8px;
203201
}
204202

205203
[mat-icon-button] {
@@ -216,7 +214,6 @@ $toolbar-zindex: 30;
216214
}
217215
}
218216
}
219-
220217
}
221218
}
222219

@@ -230,6 +227,7 @@ $toolbar-zindex: 30;
230227
}
231228

232229
.diagram {
230+
width: 90%;
233231
@media print {
234232
left: 0 !important;
235233
width: 100vw !important;
@@ -257,7 +255,6 @@ $toolbar-zindex: 30;
257255
}
258256
}
259257

260-
261258
.import-btn {
262259
input {
263260
position: absolute;
@@ -271,7 +268,8 @@ $toolbar-zindex: 30;
271268
}
272269
}
273270

274-
h1, h2 {
271+
h1,
272+
h2 {
275273
font-weight: 300;
276274
color: rgba(0, 0, 0, 0.87);
277275
}
@@ -283,3 +281,9 @@ h1 {
283281
h2 {
284282
font-size: 22px;
285283
}
284+
285+
#container-right-column{
286+
display: flex !important;
287+
flex-flow: row nowrap !important;
288+
width: 100% !important;
289+
}

0 commit comments

Comments
 (0)