Skip to content

Commit

Permalink
try to fix dashboard layout without JS
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikks committed Nov 6, 2023
1 parent b0130f1 commit ef50bab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
.main-button {
height: 100%;
min-width: 100%;
object-fit: cover;

&:not(:only-child) {
padding-right: 72px;
Expand All @@ -16,7 +15,6 @@
align-self: stretch;
flex-direction: column;
text-align: center;
min-width: 100%;

z-index: 0; // prevents the label from overlapping the preview button or filters
}
Expand All @@ -40,6 +38,7 @@

.sound-name {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class SoundboardButtonComponent implements AfterViewInit {
}

ngAfterViewInit() {

Check failure on line 24 in frontend/src/app/soundboard/soundboard-button/soundboard-button.component.ts

View workflow job for this annotation

GitHub Actions / Lint frontend

Lifecycle methods should not be empty
this.setLabelMinWidthToFitContent();
//this.setLabelMinWidthToFitContent();
}

playSound(local = false) {
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/app/soundboard/soundboard.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ main {

app-soundboard-button {
margin: 5px;
flex: 1 0 150px;
flex: 1 1 auto;
min-width: 200px;
max-width: 500px;
min-height: 70px;
}
}
Expand Down

0 comments on commit ef50bab

Please sign in to comment.