mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-09 19:15:42 +02:00
optimized for a min width of 950px
This commit is contained in:
parent
220471ab46
commit
58716d325c
17
css/news.css
17
css/news.css
@ -79,12 +79,27 @@ div.feed_controls {
|
||||
}
|
||||
|
||||
div.feed_controls div.feed_title h1 {
|
||||
max-width: 450px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media all and (min-width: 1280px){
|
||||
div.feed_controls div.feed_title h1 { max-width: 450px; }
|
||||
}
|
||||
|
||||
@media all and (max-width: 1279px) and (min-width: 1024px){
|
||||
div.feed_controls div.feed_title h1 { max-width: 230px; }
|
||||
}
|
||||
|
||||
@media all and (max-width: 1023px) and (min-width: 950px){
|
||||
div.feed_controls div.feed_title h1 { max-width: 130px; }
|
||||
}
|
||||
|
||||
@media all and (max-width: 949px){
|
||||
div.feed_controls div.feed_title h1 { display: none; }
|
||||
}
|
||||
|
||||
div.feed_controls h1 {
|
||||
font-size: 1.5em;
|
||||
color: #444;
|
||||
|
@ -254,6 +254,7 @@ News={
|
||||
$feedItems.scrollTop(0);
|
||||
var $feedTitle = $(".feed_controls .feed_title h1");
|
||||
$feedTitle.html(jsonData.data.feedTitle);
|
||||
$feedTitle.attr('title', jsonData.data.feedTitle);
|
||||
|
||||
$('li#selected_feed').attr('id', '');
|
||||
$('li.feed[data-id="' + feedId + '"]').attr('id', 'selected_feed');
|
||||
|
@ -16,7 +16,7 @@ $showOnlyUnread = true;
|
||||
<div class="feed_controls">
|
||||
|
||||
<div class="feed_title">
|
||||
<h1><?php echo $feedTitle; ?></h1>
|
||||
<h1 title="<?php echo $feedTitle; ?>"><?php echo $feedTitle; ?></h1>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<input type="button" value="<?php echo $l->t('Mark all as read'); ?>" id="mark_all_as_read" />
|
||||
|
Loading…
Reference in New Issue
Block a user