fixed article paragraph styling for real this time

This commit is contained in:
itzMiney committed 2026-04-01 09:55:14 +02:00
1 parent 29d7cdeb60
commit 98e179a334
2 files changed
+11 -8

No files matched your search

+9 -2
View File
@@ -7,7 +7,7 @@ import {AuthService} from './shared/services/auth.service';
import {AuthInterceptor} from './auth.interceptor'; import {AuthInterceptor} from './auth.interceptor';
import {TranslateHttpLoader} from '@ngx-translate/http-loader'; import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {TranslateLoader, TranslateModule} from '@ngx-translate/core'; import {TranslateLoader, TranslateModule} from '@ngx-translate/core';
import { provideMarkdown } from 'ngx-markdown'; import {MARKED_OPTIONS, provideMarkdown} from 'ngx-markdown';
export function createTranslateLoader(http: HttpClient) { export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, '/i18n/', '.json'); return new TranslateHttpLoader(http, '/i18n/', '.json');
@@ -25,7 +25,14 @@ export const appConfig: ApplicationConfig = {
), ),
provideClientHydration(withEventReplay()), provideClientHydration(withEventReplay()),
provideHttpClient(), provideHttpClient(),
provideMarkdown(), provideMarkdown({
markedOptions: {
provide: MARKED_OPTIONS,
useValue: {
breaks: true,
},
},
}),
AuthService, AuthService,
AuthInterceptor, AuthInterceptor,
importProvidersFrom( importProvidersFrom(
@@ -47,8 +47,8 @@ h1 {
} }
.article-content p { .article-content p {
margin: 0 auto; margin: 0.7rem 0;
line-height: 1.3; line-height: 1.2;
} }
.article-meta { .article-meta {
@@ -58,10 +58,6 @@ h1 {
margin: 25px 0; margin: 25px 0;
} }
.article-meta p {
margin: 8px 0;
}
.article-buttons { .article-buttons {
display: flex; display: flex;
align-items: center; align-items: center;