index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. <template>
  2. <div class="message-wrapper">
  3. <div class="tab-content" ref="pageWrapperDom" @scroll="pageScroll">
  4. <div class="list-wrapper" ref="pageGiveListDom">
  5. <div class="give-list" v-if="currentTabIndex == 0">
  6. <template v-if="giveList.length">
  7. <div class="cell" :class="{ 'cell-center': item.type == 1 || item.type == 3 }"
  8. v-for="(item, index) in giveList" :key="index" @click="clickListItem(item, index)">
  9. <red-dot class="red-dots" v-if="item.unReadMsgCount > 0 && isReadMsg"></red-dot>
  10. <div class="img-wrapper">
  11. <!-- 收到红包 -->
  12. <template v-if="item.type == 1 || item.type == 3">
  13. <img class="icon-avatar" :src="item.userInfo.avatarUrl" />
  14. <img class="icon-give" :src="require('@/assets/svg/icon-get-giveaways-s.svg')" />
  15. </template>
  16. <!-- 发出去红包 -->
  17. <template v-else-if="2">
  18. <img class="icon-big-give" :src="require('@/assets/svg/icon-send-giveaways-s.svg')" />
  19. <img class="icon-mark-give" :src="require('@/assets/svg/icon-send-giveaways-mark.svg')" />
  20. </template>
  21. </div>
  22. <div class="info-wrapper" :class="{ 'info-center': item.type == 1 }">
  23. <div class="left">
  24. <div class="nickname">
  25. <template v-if="item.type == 1">
  26. Get Giveaway
  27. </template>
  28. <template v-else-if="item.type == 2">
  29. {{ item.postTaskLuckdrop.luckdropType === 1 ? 'Send Giveaway' : 'Lottery Giveaway' }}
  30. </template>
  31. <template v-else-if="item.type == 3">
  32. Lottery
  33. </template>
  34. </div>
  35. <div class="time">
  36. {{ moment(item.timestamp).format("MM-DD HH:mm:ss") }}
  37. </div>
  38. </div>
  39. <div class="right">
  40. <div class="msg">
  41. <div class="bold" :class="{
  42. 'align-content':
  43. (item.type == 2 ||
  44. (item.type == 1 && item.status == 1)) &&
  45. item?.amount?.length + item?.currencySymbol?.length > 12,
  46. 'custom-bold': item.rewardType === RewardType.custom
  47. }">
  48. <!-- 收到的 -->
  49. <template v-if="item.type == 1">
  50. <!-- 进行中-->
  51. <template v-if="item.status == 0">
  52. In Progress
  53. </template>
  54. <!-- 已完成 -->
  55. <template v-else-if="item.status == 1">
  56. <!-- 已中奖-货币型奖品展示 -->
  57. <template v-if="item.rewardType === RewardType.money">
  58. <span class="blance">
  59. <a-tooltip :title="item.amount">
  60. {{ getBit(item.amount) }}</a-tooltip>
  61. </span>
  62. <div class="coin-type-wrapper">
  63. <span class="coin-type">{{
  64. item.currencySymbol || ""
  65. }}</span>
  66. <img :src="item.currencyIconPath" alt="" />
  67. </div>
  68. </template>
  69. <!-- 已中奖-通用型奖品展示 -->
  70. <template v-else>
  71. <span class="blance cuntom-prize">{{ item.customizedReward }}</span>
  72. </template>
  73. </template>
  74. <!-- 已过期 -->
  75. <template v-else-if="item.status == 2">
  76. Timeout
  77. </template>
  78. </template>
  79. <!-- 发出去的 -->
  80. <template v-else-if="item.type == 2">
  81. <!-- 已中奖-货币型奖品展示 -->
  82. <template v-if="item.rewardType === RewardType.money">
  83. <span class="blance">
  84. <a-tooltip :title="'-' + item.amount">
  85. -{{ getBit(item.amount) }}
  86. </a-tooltip>
  87. </span>
  88. <div class="coin-type-wrapper">
  89. <span class="coin-type">{{
  90. item.currencySymbol || ""
  91. }}</span>
  92. <img :src="item.currencyIconPath" alt="" />
  93. </div>
  94. </template>
  95. <!-- 已中奖-通用型奖品展示 -->
  96. <template v-else>
  97. <span class="blance cuntom-prize">
  98. {{ item.customizedReward || '' }}<span class="cuntom-prize-icon">X</span>
  99. <span class="cuntom-prize-total">{{ item?.postTaskLuckdrop?.totalCount || '' }}</span>
  100. </span>
  101. </template>
  102. </template>
  103. <template v-else-if="item.type == 3">
  104. <template v-if="item.status == 1">In Progress</template>
  105. <template v-else-if="item.status == 2">
  106. Open in {{ item.downTime || '' }}
  107. </template>
  108. <template v-else-if="item.status == 3">
  109. Unfinished
  110. </template>
  111. <template v-else-if="item.status == 4">
  112. <!-- 已中奖-货币型奖品展示 -->
  113. <template v-if="item.rewardType === RewardType.money">
  114. <span class="blance">
  115. <a-tooltip :title="item.amount">
  116. +{{ getBit(item.amount) }}
  117. </a-tooltip>
  118. </span>
  119. <div class="coin-type-wrapper">
  120. <span class="coin-type">{{
  121. item.currencySymbol || ""
  122. }}</span>
  123. <img :src="item.currencyIconPath" alt="" />
  124. </div>
  125. </template>
  126. <!-- 已中奖-通用型奖品展示 -->
  127. <template v-else>
  128. <span class="blance cuntom-prize">{{ item.customizedReward }}</span>
  129. </template>
  130. </template>
  131. <template v-else-if="item.status == 5">
  132. Didn't win
  133. </template>
  134. <template v-else-if="item.status == 6">
  135. Giveaway Expired
  136. </template>
  137. </template>
  138. </div>
  139. <!-- 发出的红包显示 -->
  140. <div class="desc" v-if="item.type == 2">
  141. <!-- 未发送-->
  142. <template v-if="item.postTaskLuckdrop.reSendAvailable">
  143. Unpublished
  144. </template>
  145. <!-- 进行中 -->
  146. <template v-else-if="item.status == 1">
  147. <template v-if="item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 2">
  148. {{ item.downTime || '' }}
  149. </template>
  150. <template v-else>
  151. {{ item.postTaskLuckdrop.receivedCount }}/{{
  152. item.postTaskLuckdrop.totalCount
  153. }}
  154. </template>
  155. </template>
  156. <!-- 2:已结束; 3:提前终止-->
  157. <template v-else-if="item.status == 2 || item.status == 3">
  158. <!-- 普通红包 -->
  159. <template v-if="item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 1">
  160. <template v-if="item.status == 2">
  161. (Time expired)
  162. </template>
  163. <template v-if="item.status == 3">
  164. {{ item.srcContentId ? '(Termination)' : 'Termination' }}
  165. </template>
  166. <template v-if="item.status == 2 || item.status == 3 && item.srcContentId">
  167. {{ item.postTaskLuckdrop.receivedCount }}/{{
  168. item.postTaskLuckdrop.totalCount
  169. }}
  170. </template>
  171. </template>
  172. <!-- 抽奖红包 -->
  173. <template v-else>
  174. <!-- 自定义奖品类型 结束时显示 Complete -->
  175. {{ item.rewardType === RewardType.custom && item.status == 2 ? 'Complete' : 'Termination' }}
  176. </template>
  177. </template>
  178. <!-- 红包提前终止/退款(进行中)显示-->
  179. <template v-if="item.status == 4">
  180. {{ item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 1 ? 'Terminating' : 'Open in '
  181. + item.downTime || ''
  182. }}
  183. </template>
  184. <!-- 进行中或者未发送成功时显示
  185. v-if="item.status == 1 || item.postTaskLuckdrop.reSendAvailable"-->
  186. <div class="desc-bottom-bar">
  187. <!-- 没有终止红包时显示 -->
  188. <div v-if="item.postTaskLuckdrop.terminatedAvailable" class="btn"
  189. @click.stop="terminaHandler(item, index)">
  190. Termination
  191. </div>
  192. <!-- 红包未发出显示 -->
  193. <div class="btn send-btn" v-if="item.postTaskLuckdrop.reSendAvailable"
  194. @click.stop="sendTwitter(item)">
  195. Send
  196. </div>
  197. <div v-else-if="item.srcContentId" class="btn detail-btn"
  198. @click.stop="clickListItem(item, index)">
  199. details
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <!-- 发红包—— 未发出、进行中 隐藏 -->
  205. <img v-if="item.type != 2" class="icon" :src="require('@/assets/svg/icon-cell-arrow-right.svg')" />
  206. </div>
  207. </div>
  208. </div>
  209. </template>
  210. <template v-else>
  211. <img class="icon-empty" :src="require('@/assets/svg/icon-empty-list.svg')" />
  212. </template>
  213. </div>
  214. </div>
  215. </div>
  216. <modal :visible="modalVisible" :title="modalTitle" :content="modalContent" cancelText="Termination"
  217. confirmText="Cancel" @cancel="modalCancel" @confirm="modalConfirm" />
  218. </div>
  219. </template>
  220. <script setup>
  221. import { ref, onMounted, inject, onBeforeUnmount } from "vue";
  222. import modal from "@/view/popup/components/modal.vue";
  223. import redDot from "@/view/components/red-dot.vue";
  224. import { getBit, formatSecondsAsDaysOrTime } from "@/uilts/help";
  225. import { getMineLuckdropRecords } from "@/http/account";
  226. import { terminatedLuckdrop } from "@/http/redPacket";
  227. import { readAllMsgByType, getAllMessageInfo } from "@/http/messageApi"
  228. import { setBadgeInfo, hideBadge } from "@/logic/background/twitter";
  229. import { getChromeStorage } from "@/uilts/chromeExtension";
  230. import { RewardType } from "@/types";
  231. var moment = require("moment");
  232. let currentTabIndex = ref(0);
  233. let userInfo = ref({});
  234. let tabList = ref([
  235. {
  236. label: "ALL",
  237. },
  238. {
  239. label: "Giveaway",
  240. },
  241. {
  242. label: "NFT",
  243. },
  244. ]);
  245. let pageWrapperDom = ref(null);
  246. let pageGiveListDom = ref(null);
  247. let modalVisible = ref(false);
  248. let modalTitle = ref('');
  249. let modalContent = ref('');
  250. let terminaTask = {};
  251. let giveList = ref([]);
  252. let giveReqParams = {
  253. params: {
  254. pageNum: 1,
  255. pageSize: 20,
  256. },
  257. loadMore: false,
  258. };
  259. let isReadMsg = ref(true);
  260. const clickTab = (params, index) => {
  261. currentTabIndex.value = index;
  262. };
  263. /**
  264. * 获取红包列表
  265. */
  266. const getLuckdropRecordsList = () => {
  267. getMineLuckdropRecords({
  268. params: giveReqParams.params,
  269. }).then((res) => {
  270. chrome.runtime.connect({ name: "popup" });
  271. if (res.data && res.data.length) {
  272. if (giveReqParams.params.pageNum < 2) {
  273. giveList.value = res.data;
  274. } else {
  275. let data = giveList.value;
  276. data = data.concat(res.data);
  277. giveList.value = data;
  278. }
  279. downTimeBegin()
  280. giveReqParams.loadMore = false;
  281. }
  282. });
  283. };
  284. const getCurrentList = () => {
  285. getMineLuckdropRecords({
  286. params: {
  287. pageNum: 1,
  288. pageSize: giveList.value.length || 20,
  289. }
  290. }).then((res) => {
  291. if (res.data && res.data.length) {
  292. giveList.value = res.data;
  293. }
  294. })
  295. }
  296. /**
  297. * 点击列表跳转到推文
  298. */
  299. const clickListItem = (params) => {
  300. if (!params.srcContentId) {
  301. return;
  302. }
  303. let twitterUrl = "https://twitter.com/";
  304. let nickName = "";
  305. if (params.type == 1 || params.type == 3) {
  306. nickName = params.userInfo.nickName;
  307. } else if (params.type == 2) {
  308. nickName = userInfo.value.nickName;
  309. }
  310. let url = twitterUrl + nickName + "/status/" + params.srcContentId;
  311. chrome.tabs.create({
  312. url,
  313. });
  314. };
  315. const pageScroll = (e) => {
  316. let wrapperHeight = pageWrapperDom.value.offsetHeight;
  317. let pageGiveListHeight = pageGiveListDom.value.offsetHeight;
  318. let scrollTop = e.target.scrollTop || 0;
  319. if (currentTabIndex.value != 0) {
  320. return;
  321. }
  322. if (
  323. giveReqParams.loadMore === false &&
  324. wrapperHeight + scrollTop >= pageGiveListHeight - 60
  325. ) {
  326. giveReqParams.loadMore = true;
  327. giveReqParams.params.pageNum++;
  328. getLuckdropRecordsList();
  329. }
  330. };
  331. /**
  332. * 点击发送,去发推
  333. */
  334. const sendTwitter = (params) => {
  335. console.log(params);
  336. callEventPageMethod(
  337. "POPUP_PUBLISH_TWITTER_RED_PACK",
  338. {
  339. srcContent: params.postTaskLuckdrop.srcContent,
  340. postId: params.postTaskLuckdrop.postId,
  341. },
  342. function (response) {
  343. console.log("res", response);
  344. }
  345. );
  346. };
  347. /**
  348. * sendMessage
  349. */
  350. const callEventPageMethod = (actionType, data, callback) => {
  351. chrome.runtime.sendMessage(
  352. {
  353. actionType: actionType,
  354. data: data,
  355. },
  356. function (response) {
  357. if (typeof callback === "function") callback(response);
  358. }
  359. );
  360. };
  361. const terminaHandler = (params, index) => {
  362. terminaTask = params;
  363. terminaTask.index = index;
  364. // set font
  365. if (params && params.postTaskLuckdrop && params.postTaskLuckdrop.luckdropType == 2) {
  366. modalTitle.value = `Early Termination of Lottery?`
  367. modalContent.value = `This operation will terminate the lottery process and refund the lottery prizes.`
  368. } else {
  369. modalTitle.value = `Early termination of Giveaway?`
  370. modalContent.value = `The remaining amount will be returned to your wallet within 1 day.`
  371. }
  372. modalVisible.value = true;
  373. };
  374. const modalCancel = () => {
  375. //请求终止接口 id terminaTask.id 、 刷新当前列表、 关闭
  376. modalVisible.value = false;
  377. let index = terminaTask.index;
  378. terminatedLuckdrop({
  379. params: {
  380. luckdropId: terminaTask.id,
  381. },
  382. }).then((res) => {
  383. if (res.code == 0) {
  384. giveList.value[index]["status"] = res.data.status;
  385. giveList.value[index]["postTaskLuckdrop"]["reSendAvailable"] = false;
  386. giveList.value[index]["postTaskLuckdrop"]["terminatedAvailable"] = false;
  387. // 重新拉取
  388. getCurrentList()
  389. }
  390. });
  391. terminaTask = {};
  392. };
  393. const modalConfirm = () => {
  394. modalVisible.value = false;
  395. terminaTask = {};
  396. };
  397. const readAllMsg = ({ msgType }, cb) => {
  398. readAllMsgByType({
  399. params: {
  400. msgType
  401. }
  402. }).then(res => {
  403. cb && cb();
  404. })
  405. };
  406. const setMessageCount = () => {
  407. getAllMessageInfo({
  408. params: {
  409. }
  410. }).then(res => {
  411. if (res.code == 0) {
  412. let { unReadCountTotal = 0, unReadCountWalletDetail = 0, unReadCountTaskLuckdrop = 0 } = res.data;
  413. if (unReadCountTotal > 0) {
  414. let text = unReadCountTotal > 99 ? '99+' : unReadCountTotal + '';
  415. setBadgeInfo({ data: { text } });
  416. } else {
  417. hideBadge();
  418. }
  419. }
  420. });
  421. }
  422. const getUserInfo = (cb) => {
  423. getChromeStorage("userInfo", (res) => {
  424. if (res && res.accessToken) {
  425. userInfo.value = res;
  426. } else {
  427. userInfo.value = {};
  428. }
  429. cb && cb(res);
  430. });
  431. };
  432. const init = () => {
  433. getUserInfo();
  434. getLuckdropRecordsList();
  435. setMessageCount();
  436. setTimeout(() => {
  437. isReadMsg.value = false;
  438. readAllMsg({ msgType: 1 }, () => {
  439. setMessageCount();
  440. });
  441. }, 2000);
  442. }
  443. const onMessage = () => {
  444. chrome.runtime.onMessage.addListener(msgListener)
  445. }
  446. const msgListener = (req, sender, sendResponse) => {
  447. ;
  448. switch (req.actionType) {
  449. case 'CONTENT_POPUP_PAGE_SHOW':
  450. init();
  451. break;
  452. }
  453. }
  454. // 倒计时
  455. const downTimeBegin = () => {
  456. let list = giveList.value || []
  457. let ifDown = false
  458. list.forEach((item) => {
  459. if (item.endTimestamp) {
  460. let time = moment(new Date().getTime())
  461. let endTime = moment(item.endTimestamp + 5000)
  462. let downTime = (endTime - time) || 0
  463. if (downTime > 0) {
  464. item.downTime = formatSecondsAsDaysOrTime(downTime / 1000, false);
  465. ifDown = true;
  466. }
  467. if (item && item.downTime && item.downTime == '00:00:00') {
  468. getCurrentList()
  469. }
  470. }
  471. })
  472. if (ifDown) {
  473. setTimeout(() => {
  474. downTimeBegin()
  475. }, 1000)
  476. }
  477. }
  478. onMounted(() => {
  479. onMessage();
  480. init();
  481. });
  482. onBeforeUnmount(() => {
  483. chrome.runtime.onMessage.removeListener(msgListener);
  484. })
  485. </script>
  486. <style scoped lang="scss">
  487. .message-wrapper {
  488. width: 100%;
  489. height: 100%;
  490. margin-top: 1px;
  491. .tab-bar {
  492. display: flex;
  493. align-items: center;
  494. background-color: #fff;
  495. box-shadow: 0px 0.5px 0px #d1d9dd;
  496. .tab-item {
  497. display: flex;
  498. align-items: center;
  499. justify-content: center;
  500. padding: 14px 0px;
  501. box-sizing: border-box;
  502. border-bottom: 2px solid #fff;
  503. margin: 0 12px;
  504. font-size: 14px;
  505. color: #949494;
  506. cursor: pointer;
  507. }
  508. .active {
  509. border-bottom: 2px solid #1d9bf0;
  510. font-weight: 500;
  511. color: #000;
  512. }
  513. }
  514. .tab-content {
  515. height: 100%;
  516. overflow-y: auto;
  517. .list-wrapper {
  518. min-height: 202px;
  519. .give-list {
  520. min-height: 202px;
  521. position: relative;
  522. .cell {
  523. display: flex;
  524. justify-content: space-between;
  525. min-height: 76px;
  526. box-sizing: border-box;
  527. padding-left: 14px;
  528. position: relative;
  529. cursor: pointer;
  530. .red-dots {
  531. position: absolute;
  532. right: 4px;
  533. top: 4px;
  534. }
  535. .img-wrapper {
  536. position: relative;
  537. width: 38px;
  538. margin-right: 16px;
  539. box-sizing: border-box;
  540. .icon-avatar {
  541. width: 34px;
  542. height: 34px;
  543. border-radius: 50%;
  544. margin-right: 8px;
  545. }
  546. .icon-give {
  547. position: absolute;
  548. right: 1px;
  549. bottom: -1px;
  550. width: 18px;
  551. height: 18px;
  552. }
  553. .icon-big-give {
  554. margin-top: 12px;
  555. width: 34px;
  556. }
  557. .icon-mark-give {
  558. position: absolute;
  559. right: -2px;
  560. top: 31px;
  561. width: 16px;
  562. height: 16px;
  563. }
  564. }
  565. .info-wrapper {
  566. flex: 1;
  567. height: 100%;
  568. display: flex;
  569. justify-content: space-between;
  570. box-sizing: border-box;
  571. padding: 10px 14px 10px 0;
  572. .left {
  573. .nickname {
  574. font-weight: 500;
  575. font-size: 13px;
  576. margin-bottom: 5px;
  577. max-width: 132px;
  578. word-break: break-all;
  579. }
  580. .time {
  581. font-size: 12px;
  582. color: #b0b0b0;
  583. }
  584. }
  585. .right {
  586. display: flex;
  587. align-items: center;
  588. cursor: pointer;
  589. .msg {
  590. display: flex;
  591. align-items: flex-end;
  592. flex-direction: column;
  593. .bold {
  594. font-weight: 500;
  595. font-size: 13px;
  596. text-align: right;
  597. display: flex;
  598. justify-content: flex-end;
  599. align-items: center;
  600. max-width: 140px;
  601. .blance {
  602. margin-left: 3px;
  603. display: inline-block;
  604. max-width: 80px;
  605. word-break: break-all;
  606. line-height: 18px;
  607. color: #e86f00;
  608. }
  609. .cuntom-prize {
  610. max-width: 130px;
  611. word-break: break-word;
  612. text-align: left;
  613. }
  614. .cuntom-prize-icon {
  615. color: #000;
  616. }
  617. .cuntom-prize-total {
  618. color: #000;
  619. word-break: break-word;
  620. }
  621. .coin-type-wrapper {
  622. display: flex;
  623. align-items: center;
  624. }
  625. .coin-type {
  626. margin-left: 3px;
  627. word-break: break-all;
  628. }
  629. img {
  630. margin-left: 4px;
  631. width: 14px;
  632. height: 14px;
  633. }
  634. }
  635. .align-content {
  636. flex-direction: column;
  637. align-items: flex-end;
  638. .blance {
  639. max-width: 130px;
  640. }
  641. }
  642. .desc {
  643. font-size: 12px;
  644. color: #b6b6b6;
  645. margin-top: 5px;
  646. text-align: right;
  647. .desc-bottom-bar {
  648. display: flex;
  649. align-items: center;
  650. justify-content: flex-end;
  651. margin-top: 10px;
  652. .btn {
  653. min-width: 80px;
  654. height: 29px;
  655. padding: 0 8px;
  656. box-sizing: border-box;
  657. font-weight: 400;
  658. font-size: 14px;
  659. cursor: pointer;
  660. text-align: center;
  661. border-radius: 100px;
  662. color: #5e5e5e;
  663. border: 1px solid #dfdfdf;
  664. display: flex;
  665. align-items: center;
  666. justify-content: center;
  667. }
  668. .send-btn {
  669. border: 1px solid #1d9bf0;
  670. color: #1d9bf0;
  671. }
  672. .detail-btn,
  673. .send-btn {
  674. margin-left: 8px;
  675. }
  676. }
  677. }
  678. }
  679. .icon {
  680. width: 18px;
  681. height: 24px;
  682. margin-left: 4px;
  683. margin-right: -5px;
  684. }
  685. }
  686. }
  687. .info-center {
  688. align-items: center;
  689. }
  690. }
  691. .cell-center {
  692. align-items: center;
  693. }
  694. .icon-empty {
  695. position: absolute;
  696. left: 50%;
  697. top: 50%;
  698. transform: translate(-50%, -50%);
  699. }
  700. }
  701. }
  702. }
  703. }
  704. </style>