Skip to content

Commit

Permalink
fixed mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonCeci committed Oct 9, 2024
1 parent 8dd249d commit 4629865
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/app/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,6 @@ <h5 id="side-menu-start-label">penda</h5>
>
}
</div>
<app-dark-mode-buttons />
<app-dark-mode-buttons />
</div>
</div>
15 changes: 3 additions & 12 deletions src/app/settings/dark-mode-buttons/dark-mode-buttons.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,9 @@
}

@media (max-width: 800px) {
.theme-selector-settings-dark-mode {
.settings-page .theme-selector,
.settings-page .theme-selector-dark-mode {
width: auto;
flex-direction: column;
}

.theme-selector-settings {
flex-direction: column;
}

.theme-mode-info {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Component } from '@angular/core';
import { Component, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DarkModeService } from '../../services/dark-mode.service';

@Component({
selector: 'app-dark-mode-buttons',
standalone: true,
imports: [CommonModule],
encapsulation: ViewEncapsulation.Emulated,
templateUrl: './dark-mode-buttons.component.html',
styleUrl: './dark-mode-buttons.component.css'
})
Expand Down
9 changes: 9 additions & 0 deletions src/app/settings/settings.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,12 @@
cursor: not-allowed;
pointer-events: all;
}

@media (max-width: 800px) {
.theme-mode-info {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
8 changes: 5 additions & 3 deletions src/app/settings/settings.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ <h5>Pamja e Zgjedhur</h5>
}
</div>
<div
class="theme-selector-settings"
class="theme-selector"
[ngClass]="{
'theme-selector-settings-dark-mode':
'theme-selector-dark-mode':
darkModeService.isDarkMode
}"
>
<app-dark-mode-buttons />
<div class="settings-page">
<app-dark-mode-buttons />
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 4629865

Please sign in to comment.