Skip to content

Commit a7ee5ec

Browse files
committed
Merge pull request #482 from Soundnode/add-selectable-text
add selectable text. closes #443
2 parents 8729d0f + 84ee9b6 commit a7ee5ec

File tree

11 files changed

+18
-14
lines changed

11 files changed

+18
-14
lines changed

app/public/stylesheets/css/app.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/public/stylesheets/sass/_components/_default.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,7 @@ input[type=range]:focus::-webkit-slider-runnable-track {
123123
.ui-db {
124124
display: block;
125125
}
126+
127+
.selectable-text {
128+
-webkit-user-select: initial;
129+
}

app/views/about/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="modalView">
22
<div ng-include="'views/common/modals/closeButton.html'"></div>
33

4-
<div class="modalView_content" ng-bind-html="content"></div>
4+
<div class="modalView_content selectable-text" ng-bind-html="content"></div>
55

66
<small class="ui-db" ng-if="isLatest">You have the latest version {{ appVersion }}.</small>
77
<small class="ui-db" ng-if="!isLatest">Your current version ({{ appVersion }}) isn't the latest ({{ appLatestVersion }}), please download the latest version.</small>

app/views/common/queueList.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ng-click="activateTrackInQueue($event)">
1919

2020
<small class="queueListView_list_item_index">{{ $index + 1 }}</small>
21-
<span class="queueListView_list_item_title" title="{{ item.songTitle }}">{{ item.songTitle }}</span>
21+
<span class="queueListView_list_item_title selectable-text" title="{{ item.songTitle }}">{{ item.songTitle }}</span>
2222
<span class="queueListView_list_item_user" title="by: {{ item.songUser }}">by: {{ item.songUser }} </span>
2323
<div class="queueListView_list_item_options"
2424
ng-class="{ active: hover }"

app/views/common/tracks.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
</div>
3131

3232
<section class="songList_item_inner">
33-
<h2 class="songList_item_song_tit" title="{{ data.title }}" ui-sref="track({id: {{data.id}}})">{{ data.title }}</h2>
33+
<h2 class="songList_item_song_tit selectable-text" title="{{ data.title }}" ui-sref="track({id: {{data.id}}})">{{ data.title }}</h2>
3434

3535
<h3 class="songList_item_song_info clearfix">
36-
<div class="songList_item_song_user">
36+
<div class="songList_item_song_user selectable-text">
3737
<a ui-sref="profile({id: {{data.user.id}}})">
3838
{{ data.user.username }}
3939
</a>

app/views/followers/followers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1> {{ title }}</h1>
2424
</div>
2525

2626
<section class="songList_item_inner">
27-
<h3 class="songList_item_song_tit">{{ data.username }}</h3>
27+
<h3 class="songList_item_song_tit selectable-text">{{ data.username }}</h3>
2828
<h4 class="songList_item_song_user">Tracks: {{ data.track_count }}</h4>
2929
</section>
3030

app/views/following/following.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1> {{ title }}</h1>
2424
</div>
2525

2626
<section class="songList_item_inner">
27-
<h3 class="songList_item_song_tit">{{ data.username }}</h3>
27+
<h3 class="songList_item_song_tit selectable-text">{{ data.username }}</h3>
2828
<h4 class="songList_item_song_user">Tracks: {{ data.track_count }}</h4>
2929
</section>
3030

app/views/news/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="contentWrapper">
22
<h1 class="contentTitle">News</h1>
3-
<div class="modalView_content" ng-bind-html="content"></div>
3+
<div class="modalView_content selectable-text" ng-bind-html="content"></div>
44
</div>

app/views/playlists/playlists.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h4 class="songList_item_song_user" collapsible>{{ data.title }} playlist - <spa
4646
</div>
4747

4848
<div class="songList_item_container_info">
49-
<h2 class="songList_item_song_tit">{{ tracks.title }}</h2>
49+
<h2 class="songList_item_song_tit selectable-text">{{ tracks.title }}</h2>
5050
<h4 class="songList_item_song_user">
5151
<span class="songList_item_song_info" ui-sref="profile({id: {{ tracks.user.id }}})">by: {{ tracks.user.username }} </span>
5252
<span class="songList_item_song_info">{{ formatSongDuration (tracks.duration) }}</span>

app/views/profile/profile.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<div class="profile">
44
<div class="profile_box">
55
<button ng-click="changeFollowing()" ng-mouseover="hoverIn()" ng-mouseleave="setFollowButtonText()" ng-class="{active: isFollowing}" class="button follow_button">{{follow_button_text}}</button>
6-
<h1>{{profile_data.username}}</h1>
6+
<h1 class="selectable-text">{{profile_data.username}}</h1>
77
<h3>Followers: {{followers_count}}</h3>
8-
<p class="profile_description" text-collapse text-max-height="205" text-to-collapse="{{profile_data.description}}"></p>
8+
<p class="profile_description selectable-text" text-collapse text-max-height="205" text-to-collapse="{{profile_data.description}}"></p>
99
</div>
1010
<div class="profile_pic">
1111
<img ng-src="{{ showBigArtwork (profile_data.avatar_url) }}" alt="{{ profile_data.username }}" class="songList_item_artwork">

0 commit comments

Comments
 (0)