Commit b594b769 by 姜雷

修改公告标题样式

parent e6c34a86
...@@ -26,8 +26,13 @@ ...@@ -26,8 +26,13 @@
margin-right: 16px; margin-right: 16px;
} }
.Announcement-item-title { .Announcement-item-title {
height: 40px;
line-height: 40px;
flex: 1; flex: 1;
font-size: 32px; font-size: 32px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
.Announcement-item-date { .Announcement-item-date {
margin-top: 10px; margin-top: 10px;
......
...@@ -175,6 +175,14 @@ ...@@ -175,6 +175,14 @@
font-size: 32px; font-size: 32px;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
.Home-Announcement-Content-title {
height: 40px;
line-height: 40px;
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ContentDate { .ContentDate {
font-size: 24px; font-size: 24px;
font-weight: normal; font-weight: normal;
......
...@@ -261,7 +261,9 @@ class Home extends Component { ...@@ -261,7 +261,9 @@ class Home extends Component {
onClick={() => onClick={() =>
this.geAnnDetail(annItem.items[0].id, annItem.items[0].title) this.geAnnDetail(annItem.items[0].id, annItem.items[0].title)
}> }>
<Text>{annItem.items[0].title}</Text> <Text className='Home-Announcement-Content-title'>
{annItem.items[0].title}
</Text>
<Text className='ContentDate'> <Text className='ContentDate'>
{annItem.items[0].updateTime} {annItem.items[0].updateTime}
</Text> </Text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment