Skip to content

Commit

Permalink
Order column-links on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Mar 11, 2023
1 parent 7fa50da commit 6c3f34f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### 1.1.5rc3: 2023-03-10
### 1.1.5: 2023-03-11

* Improve trends heading
* Fix account relationship hover background bubble
* Make the column links 1/5 of width of the screen on mobile
* Order column-links on mobile: Home, Explore, notifications, lists

### 1.1.4: 2023-03-10

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mastodon-bird-ui",
"version": "1.1.4",
"version": "1.1.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
20 changes: 12 additions & 8 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
v1.1.5rc3 */
v1.1.5 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -1944,26 +1944,29 @@ a.status-card.compact .status-card__description {
order: 99;
}

/* Make the column link 1/5 of width of the screen */
/* Make the column link 1/4 of width of the screen */
.layout-single-column .navigation-panel .column-link {
flex: 0 0 calc(100vw / 5);
flex: 0 0 calc(100vw / 4);
padding: 0;
}

.layout-single-column .navigation-panel .column-link:nth-child(1) {
order: 1;
order: 2;
}

/* Home */
.layout-single-column .navigation-panel .column-link:nth-child(2) {
order: 2;
order: 1;
}

/* Notifications */
.layout-single-column .navigation-panel .column-link:nth-child(3) {
order: 3;
order: 4;
}

/* Explore */
.layout-single-column .navigation-panel .column-link:nth-child(4) {
order: 4;
order: 2;
}

.layout-single-column .navigation-panel .column-link:nth-child(5) {
Expand All @@ -1986,8 +1989,9 @@ a.status-card.compact .status-card__description {
order: 9;
}

/* Lists */
.layout-single-column .navigation-panel .column-link:nth-child(10) {
order: 10;
order: 4;
}

.layout-single-column .navigation-panel .column-link:nth-child(11) {
Expand Down

0 comments on commit 6c3f34f

Please sign in to comment.