Closed andrekolodochka closed 1 week ago
Don't know how to center a text that spans across two lines :( Any ideas?
Hi @andrekolodochka, Thanks for your contributions to this project. I'm glad that the involvement of hubbers in this project is growing.
Don't know how to center a text that spans across two lines :( Any ideas?
Probably I'm missing something but I think using the CSS text-align: center;
might work for you.
Regards, Adrian
Probably I'm missing something but I think using the CSS text-align: center; might work for you.
🤦 🤦 🤦 fixed.
Thanks so much for the so due refactoring!
I am adding some spacing in the cards so the two-liners are centralized. Looking like below
This pull request primarily focuses on refactoring the CSS styles and HTML structure of various Vue components in the project. The changes are mainly centered around the extraction of common styles to a global CSS file and the adjustment of HTML structure and class assignments to better use these styles.
CSS Centralization:
src/assets/global.css
: Added new CSS classes.tiles-container
,.tiles-text
, and.error-message
for common styling across different components.src/main.ts
: Imported theglobal.css
file to make the CSS classes available globally across the application.CSS Removal:
src/components/BreakdownComponent.vue
: Removed the.tiles-container
CSS class from the component's scoped styles as it's now globally available.src/components/CopilotChatViewer.vue
: Removed the.tiles-container
CSS class from the component's scoped styles as it's now globally available.src/components/MetricsViewer.vue
: Removed the.tiles-container
CSS class from the component's scoped styles as it's now globally available.src/components/SeatsAnalysisViewer.vue
: Removed the.tiles-container
CSS class from the component's scoped styles as it's now globally available.HTML Structure Refactoring:
src/components/BreakdownComponent.vue
: Applied the.tiles-text
CSS class to the appropriatediv
elements and modified the paragraph (p
) elements to use the.text-h4
class for styling.src/components/CopilotChatViewer.vue
: Applied the.tiles-text
CSS class to the appropriatediv
elements and modified the paragraph (p
) elements to use the.text-h4
class for styling.src/components/MetricsViewer.vue
: Applied the.tiles-text
CSS class to the appropriatediv
elements and modified the paragraph (p
) elements to use the.text-h4
class for styling.src/components/SeatsAnalysisViewer.vue
: Applied the.tiles-text
CSS class to the appropriatediv
elements, modified thev-card-item
to use the.d-flex
,.justify-center
, and.align-center
classes for styling, and modified the paragraph (p
) elements to use the.text-h4
class for styling.