Skip to content

Commit a34f100

Browse files
committed
refactor: Remove unused code
1 parent a67e2b3 commit a34f100

4 files changed

Lines changed: 18 additions & 9 deletions

File tree

assets/src/scss/frontend/dashboard/layout/_nav-mobile.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
background-color: transparent;
4747
color: $tutor-text-brand;
4848
}
49+
50+
.tutor-dashboard-nav-mobile-icon {
51+
@include tutor-flex-center;
52+
}
4953
}
5054
}
5155
}

assets/src/scss/frontend/kids/_dashboard.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
[data-tutor-ui='kids'] {
66
.tutor-dashboard-nav-mobile-list > li > a,
77
.tutor-dashboard-nav-mobile-list > li > button {
8+
.tutor-dashboard-nav-mobile-icon {
9+
padding: $tutor-spacing-2;
10+
}
11+
812
span {
913
&:last-of-type {
1014
color: $tutor-text-primary;

components/Constants/Size.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ abstract class Size {
3030
public const SIZE_16 = 16;
3131
public const SIZE_20 = 20;
3232
public const SIZE_24 = 24;
33-
public const SIZE_28 = 28;
3433
public const SIZE_32 = 32;
3534
public const SIZE_40 = 40;
3635
public const SIZE_48 = 48;

templates/dashboard/components/sidebar-nav-mobile.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
?>
5454
<li>
5555
<a class="<?php echo esc_attr( $active_class ); ?>" href="<?php echo esc_url( $menu_link ?? '#' ); ?>">
56-
<span class="tutor-flex-center tutor-p-2">
56+
<span class="tutor-dashboard-nav-mobile-icon">
5757
<?php
5858
SvgIcon::make()
5959
->name( ( $is_active_menu && ! tutor_utils()->is_kids_mode() ) ? $active_icon_name : $menu_icon_name )
@@ -69,12 +69,14 @@
6969
?>
7070
<li>
7171
<a href="<?php echo esc_url( Dashboard::get_account_page_url( 'profile' ) ); ?>">
72-
<?php
73-
Avatar::make()
74-
->user( get_current_user_id() )
75-
->size( Size::SIZE_28 )
76-
->render();
77-
?>
72+
<div class="tutor-dashboard-nav-mobile-icon">
73+
<?php
74+
Avatar::make()
75+
->user( get_current_user_id() )
76+
->size( Size::SIZE_20 )
77+
->render();
78+
?>
79+
</div>
7880
<span class="tutor-tiny"><?php esc_html_e( 'Profile', 'tutor' ); ?></span>
7981
</a>
8082
</li>
@@ -89,7 +91,7 @@
8991
:aria-expanded="open ? 'true' : 'false'"
9092
aria-haspopup="true"
9193
>
92-
<span class="tutor-flex-center tutor-p-2">
94+
<span class="tutor-dashboard-nav-mobile-icon">
9395
<?php SvgIcon::make()->name( Icon::ELLIPSES )->size( 20 )->render(); ?>
9496
</span>
9597
<span class="tutor-tiny"><?php esc_html_e( 'More', 'tutor' ); ?></span>

0 commit comments

Comments
 (0)