Skip to content

Commit 86cb17b

Browse files
fix(result): mobile tooltip alignment (@HariramakrishnanK) (monkeytypegame#6205)
### Description Fixed tooltip alignment issue for mobile and tablet views (monkeytypegame#6042) and formated the CSS file for improved readability ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language or a theme? - [ ] If is a language, did you edit `_list.json`, `_groups.json` and add `languages.json`? - [ ] If is a theme, did you add the theme.css? - Also please add a screenshot of the theme, it would be extra awesome if you do so! - [x] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. Closes monkeytypegame#6042 - Updated CSS for better tooltip positioning and formatted the file for readability. - Tested on mobile and tablet views (images attached below). ![Mobile View](https://github.com/user-attachments/assets/d5331c4c-5479-4cb8-8e10-d6cde6daad1a) ![Tab View](https://github.com/user-attachments/assets/97218bfb-c0e6-42bd-a1d3-affe9da4198f)
1 parent 845babd commit 86cb17b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

frontend/src/styles/media-queries-green.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
.pageTest {
5353
#result .wrapper .stats.morestats {
5454
display: grid;
55-
grid-template-columns: 1fr 1fr 1fr;
55+
grid-template-columns: repeat(3, max-content);
5656
grid-template-rows: 1fr 1fr;
5757
}
5858
#liveStatsTextTop,

frontend/src/styles/media-queries-purple.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
.morestats {
7676
justify-self: unset;
7777
width: unset;
78+
79+
.group .bottom::after {
80+
transform: none;
81+
left: 0;
82+
}
7883
}
7984
.buttons {
8085
grid-template-columns: 1fr 1fr;

0 commit comments

Comments
 (0)